From: Simon Horman Subject: Re: [Xen-changelog] [xen-unstable] xend: hot-plug PCI devices at boot-time Date: Fri, 12 Jun 2009 16:33:35 +1000 Message-ID: <20090612063335.GF20581@verge.net.au> References: <200905300930.n4U9UOTG008828@xenbits.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cui, Dexuan" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, Jun 12, 2009 at 01:51:10PM +0800, Cui, Dexuan wrote: > Hi Simon, > After this changeset, I find there are some new issues in the xend: > I noticed in xend.log, setupOneDevice() is invoked twice, but actually I only statically assign 1 device to hvm guest. > > After looking into the xend code, I find in XendDomainInfo.py: _initDomain() -> _createDevices(), we invoke self._createDevice(devclass, config) that eventually invokes setupOneDevice() -- this is the first time; > And later, still in _createDevices(), we invoke pci_device_configure_boot() -> pci_device_configure() -> dev_control.reconfigureDevice(devid, dev_config) -> xend/server/pciif.py:reconfigureDevice() -> setupOneDevice() -- this is the second time. Can you remove the duplicate invocation? Sure, I will look into it ASAP. Can I confirm which version of xen-unstable.hg and qemu-xen-unstable.git you are using?