pradeep singh rautela
2007-May-18 15:07 UTC
[Xen-devel] Xenbus state and domain state are different or same?
Hi All, Following definition is from Xen-3.0.4-1 src. static void backend_changed(struct xenbus_device *dev, enum xenbus_state backend_state) { struct netfront_info *np = dev->dev.driver_data; struct net_device *netdev = np->netdev; DPRINTK("%s\n", xenbus_strstate(backend_state)); switch (backend_state) { case XenbusStateInitialising: case XenbusStateInitialised: case XenbusStateConnected: case XenbusStateUnknown: case XenbusStateClosed: break; case XenbusStateInitWait: if (dev->state != XenbusStateInitialising) break; if (network_connect(netdev) != 0) break; xenbus_switch_state(dev, XenbusStateConnected); (void)send_fake_arp(netdev); break; case XenbusStateClosing: xenbus_frontend_closed(dev); break; } } Now my query is, Can backend state of backend domain different from that of dev->state here as depicted here - case XenbusStateInitWait: if (dev->state != XenbusStateInitialising) Does this means that state of the backend domain and that of the Xenbus may not necessarily be same for the frontend Domain? Thanks in advance --psr -- --- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel