From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v1 05/10] libxl: synchronise configuration when we hotplug a device Date: Fri, 25 Jul 2014 18:19:20 +0100 Message-ID: <20140725171920.GO28444@zion.uk.xensource.com> References: <1405002745-5034-1-git-send-email-wei.liu2@citrix.com> <1405002745-5034-6-git-send-email-wei.liu2@citrix.com> <21458.32883.407097.751896@mariner.uk.xensource.com> <20140725164008.GN28444@zion.uk.xensource.com> <21458.36803.943975.989611@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21458.36803.943975.989611@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Wei Liu , ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Jul 25, 2014 at 06:11:31PM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH v1 05/10] libxl: synchronise configuration when we hotplug a device"): > > On Fri, Jul 25, 2014 at 05:06:11PM +0100, Ian Jackson wrote: > > [...] > > > I don't think this is right. At this point it may be the case that > > > the disk is already attached. > > > > What do you mean by "attched"? I don't think guest knows anything about > > that disk at this point. > > I mean, suppose I do this > xl block-attach /dev/vm/foo,,xvda > xl block-attach /dev/vm/bar,,xvda > then your code running during the second attach will remove > foo,,xvda from the json config while it remains in the domain. That's > wrong. > I see, I will do a xenstore read to determine if a device is already there. Note to self: also check other devices for this problem. Wei.