diff options
Diffstat (limited to 'arch/x86/platform/pvh')
| -rw-r--r-- | arch/x86/platform/pvh/enlighten.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/arch/x86/platform/pvh/enlighten.c b/arch/x86/platform/pvh/enlighten.c index 62f5c7045944..1861a2ba0f2b 100644 --- a/arch/x86/platform/pvh/enlighten.c +++ b/arch/x86/platform/pvh/enlighten.c @@ -44,8 +44,6 @@ void __init __weak mem_map_via_hcall(struct boot_params *ptr __maybe_unused)  static void __init init_pvh_bootparams(bool xen_guest)  { -	memset(&pvh_bootparams, 0, sizeof(pvh_bootparams)); -  	if ((pvh_start_info.version > 0) && (pvh_start_info.memmap_entries)) {  		struct hvm_memmap_table_entry *ep;  		int i; @@ -103,7 +101,7 @@ static void __init init_pvh_bootparams(bool xen_guest)   * If we are trying to boot a Xen PVH guest, it is expected that the kernel   * will have been configured to provide the required override for this routine.   */ -void __init __weak xen_pvh_init(void) +void __init __weak xen_pvh_init(struct boot_params *boot_params)  {  	xen_raw_printk("Error: Missing xen PVH initialization\n");  	BUG(); @@ -112,7 +110,7 @@ void __init __weak xen_pvh_init(void)  static void hypervisor_specific_init(bool xen_guest)  {  	if (xen_guest) -		xen_pvh_init(); +		xen_pvh_init(&pvh_bootparams);  }  /* @@ -131,6 +129,8 @@ void __init xen_prepare_pvh(void)  		BUG();  	} +	memset(&pvh_bootparams, 0, sizeof(pvh_bootparams)); +  	hypervisor_specific_init(xen_guest);  	init_pvh_bootparams(xen_guest); |