From: Keir Fraser Subject: Re: problem about changing state to XenbusStateClosed resulting in vbd entry removed from xenstore Date: Fri, 19 May 2006 09:47:43 +0100 Message-ID: <926a8259a1441719b65847a4df5abbab@cl.cam.ac.uk> References: <446CA038.2080009@Sun.COM> <20060518230034.GE30245@leeni.uk.xensource.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20060518230034.GE30245@leeni.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ewan Mellor Cc: xen-devel@lists.xensource.com, Max Zhen List-Id: xen-devel@lists.xenproject.org On 19 May 2006, at 00:00, Ewan Mellor wrote: >> + This doesn't seem correct since vbd's are created and destroyed from >> Dom0 as part of domain creation 'xm create' or explicitly by executing >> 'xm block-attach'. Therefore, it would seem that devices should be >> removed either when a domU terminates or the device is explicitly >> removed from dom0 by 'xm block-detach'. > > You could argue that you ought to be able to remove the frontend driver > module, and then load that module again and have all the devices > reconnect. > I've no idea whether that would have knock-on consequences though. I think we really ought to be able to support this, but it hardly sounds a priority. OTOH if it's simply a case of stopping the hotplug scripts from zapping the xenstore entries, and instead do that in the domain-destruction and vbd-remove paths of xend, then maybe it's not so hard to fix. Anyway, I'd certainly consider the current behaviour to be a bug, albeit perhaps a minor one. -- Keir