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

Re: [Xen-devel] Race with hotplug vif scripts

To: Jacob Gorm Hansen <jacobg@xxxxxxx>, xen-devel <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Race with hotplug vif scripts
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Sat, 30 Dec 2006 19:03:22 +0000
Delivery-date: Sat, 30 Dec 2006 11:03:11 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1167504768.4895.14.camel@xxxxxxxxxxxxxxxxxxxxx>
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
Thread-index: AccsRSzWazTKTpg4EduSEQAX8io7RQ==
Thread-topic: [Xen-devel] Race with hotplug vif scripts
User-agent: Microsoft-Entourage/11.2.5.060620
On 30/12/06 18:52, "Jacob Gorm Hansen" <jacobg@xxxxxxx> wrote:

> Currently I just set the frontend to '4', and just wait for the backend
> state to also become '4' (connected), but this does not work in all
> cases. How can I synchronize with the hotplug script, and what is the
> correct sequence of XenBus states?

Jumping straight to state 4 is fine. Unlike blkback, there is no interlock
between the hotplug scripts and netback. You could work around this by
having an interlock between your hotplug script and your domain builder. Or
we could add an interlock into netback, but this would probably have to
break compatibility between netback and net hotplug scripts.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>