win-pvdrivers

changeset 104:4ad735c07462

xennet: pretty sure it's a good thing to tell backend we're initializing
author Andy Grover <andy.grover@oracle.com>
date Tue Jan 08 18:14:17 2008 -0800 (2008-01-08)
parents a96426482216
children 2f6159eaf2b1
files xennet/xennet.c
line diff
     1.1 --- a/xennet/xennet.c	Tue Jan 08 17:49:08 2008 -0800
     1.2 +++ b/xennet/xennet.c	Tue Jan 08 18:14:17 2008 -0800
     1.3 @@ -793,8 +793,10 @@ XenNet_Init(
     1.4    xi->XenInterface.XenBus_AddWatch(xi->XenInterface.InterfaceHeader.Context,
     1.5        XBT_NIL, TmpPath, XenNet_BackEndStateHandler, xi);
     1.6  
     1.7 -  // Fire backend state handler here, as we may have missed it
     1.8 -//  XenNet_BackEndStateHandler(TmpPath, xi);
     1.9 +  /* Tell backend we're coming up */
    1.10 +  RtlStringCbPrintfA(TmpPath, ARRAY_SIZE(TmpPath), "%s/state", xi->pdoData->Path);
    1.11 +  xi->XenInterface.XenBus_Printf(xi->XenInterface.InterfaceHeader.Context,
    1.12 +    XBT_NIL, TmpPath, "%d", XenbusStateInitialising);
    1.13  
    1.14    KdPrint((__DRIVER_NAME "     Waiting for backend to connect\n"));
    1.15