[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] xen/arm: Remove unused BOOT_RELOC_VIRT_START


  • To: Julien Grall <julien@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Tue, 1 Mar 2022 10:53:18 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/m8pPoRu+85TyGj2cdbwexvelzOLKeuK5zCSd90Jpfk=; b=TI7CksXHbF9+atSPhahoBn8nfjfY3zMvqNgM25BYRt2VfvkpEinoJ12UfPUZTdf3ME49drJdtAFBZ1swaYUP3u3whtm1HBMDqMz5AwKIwUb1xUdPo2c32jEjdsJfKe/zawPl2tGfe0wa2LCyCnIS+PGz1cODTdJD5znjVHyM80Iq9V589t3+LIcvUie8iq/o9LlroQrT2G4xc9zD2dndqCvQq5S7Ew7AJMjsJtzGRiapTS/ubZ/hNmRCWoiGYVnXmjkBVPir0pTbNN0nmrTGgatlR9fjx9EDdFmdzTo+w7o9lHZHYN0EaxpjeBHv5/tcIivvn/WZ/BBugpkJAbwTVA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bjp/EKqdEGIniuhYycS+hk0JZ8TTc7JMMmYRh8wxnTgURdSRnwKYKFTDa5CTKDa/a4lFQ5s+/TAqR8zikIUtwwgJ7SWpL9ta/Yq3DJ7rDER47AWZLj+XXOQvud+SmPumlkckbwlwfy6J695XtQqINO83rA/mpUGOvfsh/mvWhdjJ7h9NldXBePx4+3UduRi5PPmUNUXCQ9cmcphGgnRZK30HCnrk0ekm4JhiYiPy9yn5oCilRgWyGG/sfNYg/A6PkguTAjgBw6SfH8aQmQr+vytWEJK4F32Bv3Z7irZdPVSe1dJnXj0X2TNe1kEi2XbiWZtX6u/TB6RyDb7hFjMLOA==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Julien Grall <Julien.Grall@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>
  • Delivery-date: Tue, 01 Mar 2022 10:53:38 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYLIrpIk7mbc8G60OD3FqJgTcvKayqXAeA
  • Thread-topic: [PATCH] xen/arm: Remove unused BOOT_RELOC_VIRT_START

Hi Julien,

> On 28 Feb 2022, at 10:06, Julien Grall <julien@xxxxxxx> wrote:
> 
> From: Julien Grall <julien.grall@xxxxxxx>
> 
> We stopped relocating Xen since commit f60658c6ae "xen/arm: Stop
> relocating Xen".
> 
> At the same time, update the memory layout description.
> 
> Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Cheers
Bertrand

> ---
> xen/arch/arm/include/asm/config.h | 4 +---
> xen/arch/arm/mm.c                 | 1 -
> 2 files changed, 1 insertion(+), 4 deletions(-)
> 
> diff --git a/xen/arch/arm/include/asm/config.h 
> b/xen/arch/arm/include/asm/config.h
> index 2aced0bc3b8b..b25c9d39bb32 100644
> --- a/xen/arch/arm/include/asm/config.h
> +++ b/xen/arch/arm/include/asm/config.h
> @@ -77,8 +77,7 @@
>  *   2M -   4M   Xen text, data, bss
>  *   4M -   6M   Fixmap: special-purpose 4K mapping slots
>  *   6M -  10M   Early boot mapping of FDT
> - *   10M - 12M   Early relocation address (used when relocating Xen)
> - *               and later for livepatch vmap (if compiled in)
> + *   10M - 12M   Livepatch vmap (if compiled in)
>  *
>  * ARM32 layout:
>  *   0  -  12M   <COMMON>
> @@ -115,7 +114,6 @@
> #define BOOT_FDT_SLOT_SIZE     MB(4)
> #define BOOT_FDT_VIRT_END      (BOOT_FDT_VIRT_START + BOOT_FDT_SLOT_SIZE)
> 
> -#define BOOT_RELOC_VIRT_START  _AT(vaddr_t,0x00a00000)
> #ifdef CONFIG_LIVEPATCH
> #define LIVEPATCH_VMAP_START   _AT(vaddr_t,0x00a00000)
> #define LIVEPATCH_VMAP_END     (LIVEPATCH_VMAP_START + MB(2))
> diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
> index 515d0906f85b..8a17222109c6 100644
> --- a/xen/arch/arm/mm.c
> +++ b/xen/arch/arm/mm.c
> @@ -196,7 +196,6 @@ static void __init __maybe_unused build_assertions(void)
>     /* 2MB aligned regions */
>     BUILD_BUG_ON(XEN_VIRT_START & ~SECOND_MASK);
>     BUILD_BUG_ON(FIXMAP_ADDR(0) & ~SECOND_MASK);
> -    BUILD_BUG_ON(BOOT_RELOC_VIRT_START & ~SECOND_MASK);
>     /* 1GB aligned regions */
> #ifdef CONFIG_ARM_32
>     BUILD_BUG_ON(XENHEAP_VIRT_START & ~FIRST_MASK);
> -- 
> 2.32.0
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.