[PATCH LINUX] x86/PVH: don't truncate initrd address/size

Jan Beulich posted 1 patch 1 month, 2 weeks ago
[PATCH LINUX] x86/PVH: don't truncate initrd address/size
Posted by Jan Beulich 1 month, 2 weeks ago
Consuming merely the lower halves of the provided values isn't very
useful. (While generally loaders try to place it below 4G, especially
when it's huge it may not fit there.)

Fixes: 7243b93345f7 ("xen/pvh: Bootstrap PVH guest")
Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/arch/x86/platform/pvh/enlighten.c
+++ b/arch/x86/platform/pvh/enlighten.c
@@ -78,7 +78,9 @@ static void __init init_pvh_bootparams(b
 		struct hvm_modlist_entry *modaddr =
 			__va(pvh_start_info.modlist_paddr);
 		pvh_bootparams.hdr.ramdisk_image = modaddr->paddr;
+		pvh_bootparams.ext_ramdisk_image = modaddr->paddr >> 32;
 		pvh_bootparams.hdr.ramdisk_size = modaddr->size;
+		pvh_bootparams.ext_ramdisk_size = modaddr->size >> 32;
 	}
 
 	/*
Re: [PATCH LINUX] x86/PVH: don't truncate initrd address/size
Posted by Jason Andryuk 1 month, 2 weeks ago
On 2026-10-08 05:48, Jan Beulich wrote:
> Consuming merely the lower halves of the provided values isn't very
> useful. (While generally loaders try to place it below 4G, especially
> when it's huge it may not fit there.)
> 
> Fixes: 7243b93345f7 ("xen/pvh: Bootstrap PVH guest")
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Re: [PATCH LINUX] x86/PVH: don't truncate initrd address/size
Posted by Juergen Gross 1 month, 2 weeks ago
On 08.10.26 11:48, Jan Beulich wrote:
> Consuming merely the lower halves of the provided values isn't very
> useful. (While generally loaders try to place it below 4G, especially
> when it's huge it may not fit there.)
> 
> Fixes: 7243b93345f7 ("xen/pvh: Bootstrap PVH guest")
> Signed-off-by: Jan Beulich <jbeulich@suse.com>

Reviewed-by: Juergen Gross <jgross@suse.com>


Juergen