4 messages in com.xensource.lists.xen-develRe: [Xen-devel] Race with hotplug vif...
FromSent OnAttachments
Jacob Gorm Hansen30 Dec 2006 10:52 
Keir Fraser30 Dec 2006 11:02 
Jacob Gorm Hansen30 Dec 2006 11:18 
Ewan Mellor02 Jan 2007 06:51 
Subject:Re: [Xen-devel] Race with hotplug vif scripts
From:Keir Fraser (Keir@cl.cam.ac.uk)
Date:12/30/2006 11:02:59 AM
List:com.xensource.lists.xen-devel

On 30/12/06 18:52, "Jacob Gorm Hansen" <jac@diku.dk> 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