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

[win-pv-devel] [PATCH 14/14 v2] Fail FrontendPrepare if backend doesn't reinitialize



From: Owen Smith <owen.smith@xxxxxxxxxx>

Current backend will crash (taking out the VM) if any attempt is
made to reconnect to a backend that has transitioned to the
Closed state. Forces the frontend offline, which will fail the
frontend state transitions, and its initiating IRP.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/xencons/frontend.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xencons/frontend.c b/src/xencons/frontend.c
index f7d3b23..9f6e13d 100755
--- a/src/xencons/frontend.c
+++ b/src/xencons/frontend.c
@@ -652,6 +652,12 @@ FrontendPrepare(
         case XenbusStateClosed:
             FrontendSetXenbusState(Frontend,
                                    XenbusStateClosed);
+            // There is currently a bug in the backend.
+            // Once the backend reaches Closed, it will crash the
+            // frontend attempts to make any state transition.
+            // Avoid the bug by forcing the frontend offline and
+            // failing FrontendPrepare
+            FrontendSetOffline(Frontend);
             break;
         default:
             FrontendSetXenbusState(Frontend,
-- 
2.8.3


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

 


Rackspace

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