Re: [Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-09-01 Thread André Przywara
On 09/01/2018 02:01 PM, Amit Tomer wrote: > Hello, > >> Yes, and in fact it seems one can work around this by cleverly >> constructing the load addresses, > > But we are really dealing a corner case here. No matter where > we load the image, it would be relocated to 0x8( since dram > starts a

Re: [Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-09-01 Thread Amit Tomer
Hello, > Yes, and in fact it seems one can work around this by cleverly > constructing the load addresses, But we are really dealing a corner case here. No matter where we load the image, it would be relocated to 0x8( since dram starts at 0x...) and unfortunately first 16MiB is reserved f

[Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread André Przywara
On 08/31/2018 09:39 PM, Julien Grall wrote: Hi, tl;dr: I think we don't disagree on the usefulness of this change in general, so let's just change the commit towards something like: Update the Xen image header to match the newest Linux kernel definition. This allows to specify some relaxed prope

Re: [Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread Julien Grall
On 31/08/2018 19:04, André Przywara wrote: On 08/31/2018 06:14 PM, Julien Grall wrote: Hi, Hi, On 08/31/2018 06:01 PM, Amit Singh Tomar wrote: While porting XEN on Amlogic SoC we found that in absence of image_size field of XEN image header, bootloader(U-BOOT) relocates[1] the XEN image t

Re: [Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread André Przywara
On 08/31/2018 06:14 PM, Julien Grall wrote: Hi, > On 08/31/2018 06:01 PM, Amit Singh Tomar wrote: >> While porting XEN on Amlogic SoC we found that in absence of >> image_size field of XEN image header, bootloader(U-BOOT) >> relocates[1] the XEN image to an address(not appropriate >> for Amlogic)

Re: [Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread Julien Grall
Hi, On 08/31/2018 06:01 PM, Amit Singh Tomar wrote: While porting XEN on Amlogic SoC we found that in absence of image_size field of XEN image header, bootloader(U-BOOT) relocates[1] the XEN image to an address(not appropriate for Amlogic) derived from text_offset. IHMO, this is a bug in U-Boo

[Xen-devel] [PATCH] xen:arm: Populate arm64 image header

2018-08-31 Thread Amit Singh Tomar
While porting XEN on Amlogic SoC we found that in absence of image_size field of XEN image header, bootloader(U-BOOT) relocates[1] the XEN image to an address(not appropriate for Amlogic) derived from text_offset. This unwanted situation can be fixed by updating image_size field along side kernel