From: Keir Fraser Subject: Re: Triggering hotplug scripts multiple times Date: Fri, 30 Mar 2007 15:25:21 +0100 Message-ID: References: <20070330092550.GA4617@jacobpad.daimi.au.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070330092550.GA4617@jacobpad.daimi.au.dk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org On 30/3/07 10:25, "Jacob Gorm Hansen" wrote: > Problem is that if the domain disconnects from the netif, which it has > to when handing over the device to the domU kernel from a bootloader, > the netif is destroyed, and when the new one is created the hotplug > script gets kicked, e.g.: > > I suppose one could postpone freeing the netif until the domain has gone > away. > > Another problem with how this currently works is that vifs don't get > garbage collected properly if the domain is killed without a proper > shutdown. I would classify these behaviours as bugs. :-) We shouldn;t be device unregistering until the online status is set to 0 or the directory in xenstore is removed entirely. -- Keir