]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Re-introduce mistakenly dropped frontend state logic...
authorEytan Heidingsfeld <eytanh@gmail.com>
Mon, 18 Jul 2016 12:28:04 +0000 (13:28 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 18 Jul 2016 12:28:04 +0000 (13:28 +0100)
...from commit c9b6e56e "Cope with unexpected initial backend states" to
handle a backend that is already connected (for cases where Windows is
booted via iSCSI).

Signed-off-by: Eytan Heidingsfeld <eytanh@gmail.com>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvif/frontend.c

index b682b2ca1460195f24981b9aee8a8e5e6851da12..0fbd64036a3d0a37fd64fd8f07ebd5d3f1419114 100644 (file)
@@ -1535,6 +1535,11 @@ FrontendPrepare(
                                    XenbusStateInitialising);
             break;
 
+        case XenbusStateConnected:
+            FrontendSetXenbusState(Frontend,
+                                   XenbusStateClosing);
+            break;
+
         case XenbusStateClosing:
             FrontendSetXenbusState(Frontend,
                                    XenbusStateClosed);