win-pvdrivers

changeset 845:2e68b52de2ef

Fix state handshake problem when using Solaris DomU
author James Harper <james.harper@bendigoit.com.au>
date Sun Feb 06 14:32:13 2011 +1100 (2011-02-06)
parents 2e974eccb3b6
children 1b1fde762e0c
files xenvbd/xenvbd_storport.c
line diff
     1.1 --- a/xenvbd/xenvbd_storport.c	Sun Feb 06 13:52:40 2011 +1100
     1.2 +++ b/xenvbd/xenvbd_storport.c	Sun Feb 06 14:32:13 2011 +1100
     1.3 @@ -152,11 +152,14 @@ XenVbd_InitConfig(PXENVBD_DEVICE_DATA xv
     1.4    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_READ_STRING_BACK, "sectors", NULL, NULL);
     1.5    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_READ_STRING_BACK, "sector-size", NULL, NULL);
     1.6    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_XB_STATE_MAP_PRE_CONNECT, NULL, NULL, NULL);
     1.7 -  __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateConnected);
     1.8 +  __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateInitialised);
     1.9    __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateConnected);
    1.10    __ADD_XEN_INIT_UCHAR(&ptr, 20);
    1.11    __ADD_XEN_INIT_UCHAR(&ptr, 0);
    1.12    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_XB_STATE_MAP_POST_CONNECT, NULL, NULL, NULL);
    1.13 +  __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateConnected);
    1.14 +  __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateConnected);
    1.15 +  __ADD_XEN_INIT_UCHAR(&ptr, 20);
    1.16    __ADD_XEN_INIT_UCHAR(&ptr, 0);
    1.17    ADD_XEN_INIT_REQ(&ptr, XEN_INIT_TYPE_XB_STATE_MAP_SHUTDOWN, NULL, NULL, NULL);
    1.18    __ADD_XEN_INIT_UCHAR(&ptr, XenbusStateClosing);