xen: unplug the emulated devices at resume time
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 1 Dec 2010 14:51:44 +0000 (14:51 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Thu, 2 Dec 2010 14:40:53 +0000 (14:40 +0000)
Early after being resumed we need to unplug again the emulated devices.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
arch/x86/xen/platform-pci-unplug.c
arch/x86/xen/suspend.c
arch/x86/xen/xen-ops.h

index 0f45638..25c52f9 100644 (file)
@@ -68,7 +68,7 @@ static int __init check_platform_magic(void)
        return 0;
 }
 
-void __init xen_unplug_emulated_devices(void)
+void xen_unplug_emulated_devices(void)
 {
        int r;
 
index 1d789d5..9bbd63a 100644 (file)
@@ -31,6 +31,7 @@ void xen_hvm_post_suspend(int suspend_cancelled)
        int cpu;
        xen_hvm_init_shared_info();
        xen_callback_vector();
+       xen_unplug_emulated_devices();
        if (xen_feature(XENFEAT_hvm_safe_pvclock)) {
                for_each_online_cpu(cpu) {
                        xen_setup_runstate_info(cpu);
index 6404474..9d41bf9 100644 (file)
@@ -43,7 +43,7 @@ void xen_vcpu_restore(void);
 
 void xen_callback_vector(void);
 void xen_hvm_init_shared_info(void);
-void __init xen_unplug_emulated_devices(void);
+void xen_unplug_emulated_devices(void);
 
 void __init xen_build_dynamic_phys_to_machine(void);