win-pvdrivers

changeset 1080:e86ea7c3d8a4

Make state transitions a bit more flexible in xenvbd to allow startup in BSD Dom0
author James Harper <james.harper@bendigoit.com.au>
date Mon Dec 09 13:34:19 2013 +1100 (2013-12-09)
parents a60d401aa020
children 04fc4aca982c
files xenvbd_common/common_xen.h
line diff
     1.1 --- a/xenvbd_common/common_xen.h	Mon Dec 09 13:33:26 2013 +1100
     1.2 +++ b/xenvbd_common/common_xen.h	Mon Dec 09 13:34:19 2013 +1100
     1.3 @@ -54,8 +54,9 @@ XenVbd_Connect(PXENVBD_DEVICE_DATA xvdd,
     1.4  
     1.5    while (xvdd->backend_state != XenbusStateInitialising &&
     1.6      xvdd->backend_state != XenbusStateInitWait &&
     1.7 -    xvdd->backend_state != XenbusStateInitialised) {
     1.8 -    FUNCTION_MSG("waiting for XenbusStateInitXxx, backend_state = %d\n", xvdd->backend_state);
     1.9 +    xvdd->backend_state != XenbusStateInitialised &&
    1.10 +    xvdd->backend_state != XenbusStateConnected) {
    1.11 +    FUNCTION_MSG("waiting for XenbusStateInitXxx/XenbusStateConnected, backend_state = %d\n", xvdd->backend_state);
    1.12      KeWaitForSingleObject(&xvdd->backend_event, Executive, KernelMode, FALSE, NULL);
    1.13    }
    1.14    XnGetValue(xvdd->handle, XN_VALUE_TYPE_QEMU_HIDE_FLAGS, &qemu_hide_flags_value);