Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-11 Thread Jason Andryuk
On 2024-03-11 12:53, Jan Beulich wrote: On 06.03.2024 19:50, Jason Andryuk wrote: --- a/xen/arch/x86/hvm/dom0_build.c +++ b/xen/arch/x86/hvm/dom0_build.c @@ -537,6 +537,109 @@ static paddr_t __init find_memory( return INVALID_PADDR; } +static bool __init check_load_address( +cons

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-11 Thread Jan Beulich
On 06.03.2024 19:50, Jason Andryuk wrote: > --- a/xen/arch/x86/hvm/dom0_build.c > +++ b/xen/arch/x86/hvm/dom0_build.c > @@ -537,6 +537,109 @@ static paddr_t __init find_memory( > return INVALID_PADDR; > } > > +static bool __init check_load_address( > +const struct domain *d, const struc

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-08 Thread Juergen Gross
On 07.03.24 18:01, Jason Andryuk wrote: On 2024-03-07 04:30, Roger Pau Monné wrote: On Wed, Mar 06, 2024 at 01:50:32PM -0500, Jason Andryuk wrote: Xen tries to load a PVH dom0 kernel at the fixed guest physical address from the elf headers.  For Linux, this defaults to 0x100 (16MB), but it

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-07 Thread Jason Andryuk
On 2024-03-07 04:30, Roger Pau Monné wrote: On Wed, Mar 06, 2024 at 01:50:32PM -0500, Jason Andryuk wrote: Xen tries to load a PVH dom0 kernel at the fixed guest physical address from the elf headers. For Linux, this defaults to 0x100 (16MB), but it can be configured. Unfortunately there e

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-07 Thread Jason Andryuk
On 2024-03-06 21:09, Stefano Stabellini wrote: On Wed, 6 Mar 2024, Jason Andryuk wrote: Xen tries to load a PVH dom0 kernel at the fixed guest physical address from the elf headers. For Linux, this defaults to 0x100 (16MB), but it can be configured. Unfortunately there exist firmwares that

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-07 Thread Roger Pau Monné
On Wed, Mar 06, 2024 at 01:50:32PM -0500, Jason Andryuk wrote: > Xen tries to load a PVH dom0 kernel at the fixed guest physical address > from the elf headers. For Linux, this defaults to 0x100 (16MB), but > it can be configured. > > Unfortunately there exist firmwares that have reserved reg

Re: [PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-06 Thread Stefano Stabellini
On Wed, 6 Mar 2024, Jason Andryuk wrote: > Xen tries to load a PVH dom0 kernel at the fixed guest physical address > from the elf headers. For Linux, this defaults to 0x100 (16MB), but > it can be configured. > > Unfortunately there exist firmwares that have reserved regions at this > address

[PATCH 3/3] x86/PVH: Support relocatable dom0 kernels

2024-03-06 Thread Jason Andryuk
Xen tries to load a PVH dom0 kernel at the fixed guest physical address from the elf headers. For Linux, this defaults to 0x100 (16MB), but it can be configured. Unfortunately there exist firmwares that have reserved regions at this address, so Xen fails to load the dom0 kernel since it's not