From: "Jan Beulich" Subject: RE: VT-d device assignment may fail (regression from Xen c/s 19805:2f1fa2215e60) Date: Mon, 25 Oct 2010 17:07:05 +0100 Message-ID: <4CC5C749020000780001F01A@vpn.id2.novell.com> References: <4CC17FE5020000780001E91F@vpn.id2.novell.com> <789F9655DD1B8F43B48D77C5D30659732FBDEB49@shsmsx501.ccr.corp.intel.com> <4CC562EC020000780001EE50@vpn.id2.novell.com> <789F9655DD1B8F43B48D77C5D30659732FBDED7D@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: <789F9655DD1B8F43B48D77C5D30659732FBDED7D@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" , Allen M Kay List-Id: xen-devel@lists.xenproject.org >>> On 25.10.10 at 17:52, "Jiang, Yunhong" = wrote: >=20 >>-----Original Message----- >>From: Jan Beulich [mailto:JBeulich@novell.com]=20 >>Sent: Monday, October 25, 2010 4:59 PM >>To: Han, Weidong; Jiang, Yunhong >>Cc: xen-devel@lists.xensource.com=20 >>Subject: RE: VT-d device assignment may fail (regression from Xen c/s >>19805:2f1fa2215e60) >> >>>>> 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(). >=20 > I didn't understand quite clearly of the oriignal check (the secbus!=3D = bus &&=20 > secdevfn !=3D 0). But seems the new code should be ok, we only need = setup the=20 > devfn=3D0 for the pcie2pci bridge, at least according to the vt-d spec. It obviously isn't okay in the case where the original device is the one at :00.0 (and avoiding the attempt to map the device a second time was - afaict - the intention of that check). Jan