]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Clean up the xenstore frontend area when hibernating/crashing
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 2 Aug 2016 09:58:28 +0000 (10:58 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 2 Aug 2016 09:58:28 +0000 (10:58 +0100)
The frontend code in XENCRSH needs to clean up to avoid fooling the backend
into thinking it handles multi-page rings.

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

index 7d88902fcdfc72888be737cf7c09c02f5f582afd..0fbbbeb4d5eabfc9ccbba31f334916313ffcf741 100644 (file)
@@ -731,6 +731,14 @@ FrontendClose(
             goto fail6;
     }
 
+    // Clean up
+    (VOID) StoreRemove(NULL, Frontend->FrontendPath,
+                       "ring-page-order");
+    (VOID) StoreRemove(NULL, Frontend->FrontendPath,
+                       "feature-online-resize");
+    (VOID) StoreRemove(NULL, Frontend->FrontendPath,
+                       "feature-surprise-remove");
+
     return STATUS_SUCCESS;
 
 fail6: