From: Masaki Kanno Subject: Re: Re: [PATCH] xend: Update info['platform']['pci'] Date: Mon, 01 Jun 2009 13:08:09 +0900 Message-ID: <7DC9E26E9292AFkanno.masaki@jp.fujitsu.com> References: <78C9DF622C5003kanno.masaki@jp.fujitsu.com> <20090528104631.GA6570@verge.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090528104631.GA6570@verge.net.au> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Simon Horman Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thu, 28 May 2009 20:46:31 +1000, Simon Horman wrote: >On Thu, May 28, 2009 at 04:01:50PM +0900, Masaki Kanno wrote: >Content-Description: Mail message body >> Hi, >> >> This patch updates info['platform']['pci'] for PCI devices assignment >> to domains. >> >> When a domain is started, xend confirms by using xc.test_assign_device >> whether PCI devices can be assigned to the domain. >> For the confirmation, info['platform']['pci'] must be an appropriate >> value. However, info['platform']['pci'] may be not appropriate. >> Because info['platform']['pci'] isn't almost always updated even if >> the PCI device configuration of the domain was changed by using >> xm pci-attach/detach. >> This patch updates info['platform']['pci'] to the appropriate value >> when domains are started. > >Hi Kanno-san, > >I am curious to know how you exercise this code. >Did you notice a bug under some conditions? Hi Simon, Sorry for late response. I noticed the bug when I tried the following operations. 1) xm new vm1 2) xm list --long vm1 (domain <> (image (hvm <> (pci ((0x0 0x01 0x00 0x0 0x6 ))) 3) xm pci-attach vm1 00:1a.0 7 4) xm list --long vm1 (domain <> (image (hvm <> (pci ((0x0 0x01 0x00 0x0 0x6 ))) The value of /domain/image/hvm/pci is a value of info['platform']['pci']. The value wasn't updated when I attached the PCI device to the domain by using xm pci-attach. The value is updated by my patch. Nonetheless, the value isn't still updated when xm pci-attach/detach are executed. The value is updated when starting domains. Best regards, Kan