WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Xenbus state and domain state are different or same?
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
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=RbCWdoRzoz1C7wSWGu/fvV4Pa+ssU89JAj8Tcs6oTe8DFJ/gPKXLsSCwRAwpTtbj2WI9cCUYNQeEu9V1nkpb2D+33clmAox2O7U6oEK8NIYvhX231lVWocjWASPxpDFSIbvcffnCKZNyZ+AFJBQwDS95OECurcOnOprz6t4eFpY=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] Xenbus state and domain state are different or same?, pradeep singh rautela <=