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

[win-pv-devel] [PATCH] Release and re-acquire backend on resume



When resuming from suspend, any previously cached backend domid and path are
invalid. The frontend code should therefore release and re-acquire those
values before attempting to manipulate vif state.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenvif/frontend.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xenvif/frontend.c b/src/xenvif/frontend.c
index 90c7459..9f032c3 100644
--- a/src/xenvif/frontend.c
+++ b/src/xenvif/frontend.c
@@ -1821,6 +1821,12 @@ FrontendSuspendCallbackLate(
     )
 {
     PXENVIF_FRONTEND    Frontend = Argument;
+    NTSTATUS            status;
+
+    FrontendReleaseBackend(Frontend);
+
+    status = FrontendAcquireBackend(Frontend);
+    ASSERT(NT_SUCCESS(status));
 
     __FrontendSuspend(Frontend);
     __FrontendResume(Frontend);
-- 
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®.