From: "Jan Beulich" Subject: RE: VT-d device assignment may fail (regression from Xen c/s 19805:2f1fa2215e60) Date: Mon, 25 Oct 2010 09:58:52 +0100 Message-ID: <4CC562EC020000780001EE50@vpn.id2.novell.com> References: <4CC17FE5020000780001E91F@vpn.id2.novell.com> <789F9655DD1B8F43B48D77C5D30659732FBDEB49@shsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <789F9655DD1B8F43B48D77C5D30659732FBDEB49@shsmsx501.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Weidong Han , Yunhong Jiang Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 25.10.10 at 09:05, "Jiang, Yunhong" = wrote: >>From: Jan Beulich [mailto:JBeulich@novell.com]=20 > What's the removed bus/devfn check you mean? I didn't catch it in the = patch. There used to be if ( (secbus !=3D bus) && (secdevfn !=3D 0) ) guarding the second call to domain_context_mapping_one(). >>Finally, isn't it inconsistent that only the original device gets its >>->domain set to the new owner and gets moved to that domain's >>device list, but neither the upstream bridge nor that bridge's >>:00.0 get handled the same way? What if below that >=20 > Per my understanding, the bridge and the :00.0 is only for PCI = device=20 > because all PCI device behind the same pcie2pci bridge should be = assigned to=20 > the same domain. So if a device is assigned to a domain, the bridge and = the=20 > :00.0 should be the same, so it is not that neccessary to keep = that=20 > information for the bridge and :0.0 . Hmm, having the hypervisor rely that much on the tools behaving well doesn't seem too good an idea to me. Jan