From: Paul Durrant Date: Thu, 23 Jul 2015 15:38:37 +0000 (+0100) Subject: Only the active device should unplug emulated devices X-Git-Tag: 8.1.0-rc1~8 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fc3293cac642f8a57dbbf28e4a5d8ee0d9d44861;p=pvdrivers%2Fwin%2Fxenbus.git Only the active device should unplug emulated devices ...and populate the hypercall table. Signed-off-by: Paul Durrant --- diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c index 1e55381..9eb20e7 100644 --- a/src/xenbus/fdo.c +++ b/src/xenbus/fdo.c @@ -2985,10 +2985,14 @@ FdoS4ToS3( KeRaiseIrql(DISPATCH_LEVEL, &Irql); + if (!__FdoIsActive(Fdo)) + goto not_active; + HypercallPopulate(); UnplugDevices(); +not_active: KeLowerIrql(Irql); __FdoSetSystemPowerState(Fdo, PowerSystemSleeping3);