 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: Problem loading linux 5.19 as PV dom0
 On 23.06.22 10:47, Jan Beulich wrote: On 23.06.2022 10:06, Juergen Gross wrote:On 23.06.22 09:55, Jan Beulich wrote:On 22.06.2022 18:06, Juergen Gross wrote:A Linux kernel 5.19 can only be loaded as dom0, if it has been built with CONFIG_AMD_MEM_ENCRYPT enabled. This is due to the fact that otherwise the (relevant) last section of the built kernel has the NOLOAD flag set (it is still marked with SHF_ALLOC). I think at least the hypervisor needs to be changed to support this layout. Otherwise it will put the initial page tables for dom0 at the same position as this last section, leading to early crashes.Isn't Xen using the bzImage header there, rather than any ELF one? In which case it would matter how the NOLOAD section isFor a PV kernel? No, I don't think so.Actually it's a mix (and the same for PV and PVH) - the bzImage header is parsed to get at the embedded ELF header. XenoLinux was what would/could be loaded as plain ELF.actually represented in that header. Can you provide a dump (or binary representation) of both headers? Yeah, but the filesz and memsz values of the .bss related program header differ a lot (basically by the .bss size plus some alignment), and the .bss section flags clearly say that its attributes match those of .brk. I'm not sure why the linker wouldn't add .brk to the same pgrogram header entry as .bss, but maybe that is some .bss special handling. In the end I think this might be a linker issue, but even in this case we should really consider to handle it, as otherwise we'd just say "hey, due to a linker problem we don't support Linux 5.19 in PV mode". In the end we can't control which linker versions are used to link the kernel. Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature 
 
 
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |