mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
x86/PVH: don't truncate initrd address/size
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: 7243b93345 ("xen/pvh: Bootstrap PVH guest")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <9698d810-6664-4a9d-a847-18ad124261e0@suse.com>
This commit is contained in:
parent
908019e599
commit
fcc43d1d6b
|
|
@ -78,7 +78,9 @@ static void __init init_pvh_bootparams(bool xen_guest)
|
|||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user