xen: unplug the emulated devices at resume time

Early after being resumed we need to unplug again the emulated devices.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>

+3 -2
+1 -1
arch/x86/xen/platform-pci-unplug.c
··· 68 return 0; 69 } 70 71 - void __init xen_unplug_emulated_devices(void) 72 { 73 int r; 74
··· 68 return 0; 69 } 70 71 + void xen_unplug_emulated_devices(void) 72 { 73 int r; 74
+1
arch/x86/xen/suspend.c
··· 31 int cpu; 32 xen_hvm_init_shared_info(); 33 xen_callback_vector(); 34 if (xen_feature(XENFEAT_hvm_safe_pvclock)) { 35 for_each_online_cpu(cpu) { 36 xen_setup_runstate_info(cpu);
··· 31 int cpu; 32 xen_hvm_init_shared_info(); 33 xen_callback_vector(); 34 + xen_unplug_emulated_devices(); 35 if (xen_feature(XENFEAT_hvm_safe_pvclock)) { 36 for_each_online_cpu(cpu) { 37 xen_setup_runstate_info(cpu);
+1 -1
arch/x86/xen/xen-ops.h
··· 43 44 void xen_callback_vector(void); 45 void xen_hvm_init_shared_info(void); 46 - void __init xen_unplug_emulated_devices(void); 47 48 void __init xen_build_dynamic_phys_to_machine(void); 49
··· 43 44 void xen_callback_vector(void); 45 void xen_hvm_init_shared_info(void); 46 + void xen_unplug_emulated_devices(void); 47 48 void __init xen_build_dynamic_phys_to_machine(void); 49