[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Xenbus state and domain state are different or same?


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
  • Date: Fri, 18 May 2007 20:37:44 +0530
  • Cc: "xen. kernelnewbies" <xenkernelnewbies@xxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 18 May 2007 08:06:00 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=X5A/NMcFWdIq1G5IxbEQfF7L2uS7oqf23++vpJ4zC0TjssX2qhS3+wLrIIgH5tT+leiiSrTaMT8DewhYhld592r9CAepgoXbO5R9zpWQxFIl8IcpWv/DIxqkX9DEj05Gw9iQOkwN796RwSyJHB7/mjwpZKXK/2299zi0nMAYJJQ=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.