From fc3293cac642f8a57dbbf28e4a5d8ee0d9d44861 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Thu, 23 Jul 2015 16:38:37 +0100 Subject: [PATCH] Only the active device should unplug emulated devices ...and populate the hypercall table. Signed-off-by: Paul Durrant --- src/xenbus/fdo.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5