[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Only the active device should unplug emulated devices



...and populate the hypercall table.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 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.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.