Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-24 Thread Yann Sionneau
On 7/23/25 17:54, Jan Beulich wrote: > On 23.07.2025 17:39, Yann Sionneau wrote: >> On 7/23/25 16:18, Jan Beulich wrote: >>> On 23.07.2025 15:56, Yann Sionneau wrote: xen.efi PE does not boot when loaded from shim or some patched downstream grub2. What happens is the bootloader

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-24 Thread Anthony PERARD
On Wed, Jul 23, 2025 at 01:56:33PM +, Yann Sionneau wrote: > diff --git a/xen/Makefile b/xen/Makefile > index 8fc4e042ff..7dc9cd7e05 100644 > --- a/xen/Makefile > +++ b/xen/Makefile > @@ -299,10 +299,13 @@ export XEN_HAS_CHECKPOLICY := $(call > success,$(CHECKPOLICY) -h 2>&1 | grep -q xe > #

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Jan Beulich
On 23.07.2025 17:39, Yann Sionneau wrote: > On 7/23/25 16:18, Jan Beulich wrote: >> On 23.07.2025 15:56, Yann Sionneau wrote: >>> xen.efi PE does not boot when loaded from shim or some patched >>> downstream grub2. >>> >>> What happens is the bootloader would honour the MEM_DISCARDABLE >>> flag of

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Yann Sionneau
On 7/23/25 16:18, Jan Beulich wrote: > On 23.07.2025 15:56, Yann Sionneau wrote: >> xen.efi PE does not boot when loaded from shim or some patched >> downstream grub2. >> >> What happens is the bootloader would honour the MEM_DISCARDABLE >> flag of the .reloc section meaning it would not load its c

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Jan Beulich
On 23.07.2025 16:45, Jan Beulich wrote: > On 23.07.2025 16:38, Andrew Cooper wrote: >> On 23/07/2025 3:21 pm, Jan Beulich wrote: >>> On 23.07.2025 16:13, Andrew Cooper wrote: On 23/07/2025 2:56 pm, Yann Sionneau wrote: > xen.efi PE does not boot when loaded from shim or some patched >

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Jan Beulich
On 23.07.2025 16:38, Andrew Cooper wrote: > On 23/07/2025 3:21 pm, Jan Beulich wrote: >> On 23.07.2025 16:13, Andrew Cooper wrote: >>> On 23/07/2025 2:56 pm, Yann Sionneau wrote: xen.efi PE does not boot when loaded from shim or some patched downstream grub2. What happens is the

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Andrew Cooper
On 23/07/2025 3:21 pm, Jan Beulich wrote: > On 23.07.2025 16:13, Andrew Cooper wrote: >> On 23/07/2025 2:56 pm, Yann Sionneau wrote: >>> xen.efi PE does not boot when loaded from shim or some patched >>> downstream grub2. >>> >>> What happens is the bootloader would honour the MEM_DISCARDABLE >>> f

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Jan Beulich
On 23.07.2025 16:13, Andrew Cooper wrote: > On 23/07/2025 2:56 pm, Yann Sionneau wrote: >> xen.efi PE does not boot when loaded from shim or some patched >> downstream grub2. >> >> What happens is the bootloader would honour the MEM_DISCARDABLE >> flag of the .reloc section meaning it would not loa

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Jan Beulich
On 23.07.2025 15:56, Yann Sionneau wrote: > xen.efi PE does not boot when loaded from shim or some patched > downstream grub2. > > What happens is the bootloader would honour the MEM_DISCARDABLE > flag of the .reloc section meaning it would not load its content > into memory. > > But Xen is parsi

Re: [PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Andrew Cooper
On 23/07/2025 2:56 pm, Yann Sionneau wrote: > xen.efi PE does not boot when loaded from shim or some patched > downstream grub2. > > What happens is the bootloader would honour the MEM_DISCARDABLE > flag of the .reloc section meaning it would not load its content > into memory. > > But Xen is parsi

[PATCH] xen/x86: fix xen.efi boot crash from some bootloaders

2025-07-23 Thread Yann Sionneau
xen.efi PE does not boot when loaded from shim or some patched downstream grub2. What happens is the bootloader would honour the MEM_DISCARDABLE flag of the .reloc section meaning it would not load its content into memory. But Xen is parsing the .reloc section content twice at boot: * https://eli