]> xenbits.xensource.com Git - people/pauldu/xenbus.git/commitdiff
Only the active device should unplug emulated devices
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 23 Jul 2015 15:38:37 +0000 (16:38 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 23 Jul 2015 15:38:37 +0000 (16:38 +0100)
...and populate the hypercall table.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/fdo.c

index 1e5538177a9fd8ee2895de585d0b446d20deaa9d..9eb20e704b978453a883816c2dbc82da496de349 100644 (file)
@@ -2985,10 +2985,14 @@ FdoS4ToS3(
 
     KeRaiseIrql(DISPATCH_LEVEL, &Irql);
 
+    if (!__FdoIsActive(Fdo))
+        goto not_active;
+
     HypercallPopulate();
 
     UnplugDevices();
 
+not_active:
     KeLowerIrql(Irql);
 
     __FdoSetSystemPowerState(Fdo, PowerSystemSleeping3);