From: Jacob Gorm Hansen Subject: Race with hotplug vif scripts Date: Sat, 30 Dec 2006 19:52:48 +0100 Message-ID: <1167504768.4895.14.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org hi, I have a domU running a custom HTTP client. As soon as the domain is booted and the VIF running it wants to initiate a connection. However, I seem to be having a race where the domU starts using the VIF before it is completely functional, probably because the hotplug script has not completed. 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? Thanks, Jacob