| 
    
 [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 11:08, Jan Beulich wrote: On 23.06.2022 11:01, Juergen Gross wrote: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? I just did a test: dropping the "(NOLOAD)" for .brk in the linker script will result in the .brk section to be included in the same program header as the .bss section. I'll start an upstream discussion to drop it (I could imagine problems e.g. when using grub, as grub might place the initrd overlapping the .brk section when not using a compressed kernel). Juergen Attachment:
OpenPGP_0xB0DE9DD628BF132F.asc Attachment:
OpenPGP_signature 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |