From: "Jan Beulich" Subject: Re: Dealing with non-existent BDF devices in VT-d and in the hardware. Date: Mon, 24 Mar 2014 07:25:43 +0000 Message-ID: <532FEC07020000780000128E@nat28.tlf.novell.com> References: <20140311173039.GB14684@phenom.dumpdata.com> <531F49A4.80107@citrix.com> <20140311174940.GB15088@phenom.dumpdata.com> <20140314175115.GL30560@phenom.dumpdata.com> <20140317200020.GD16397@phenom.dumpdata.com> <20140319125747.GB8694@phenom.dumpdata.com> <5329B6AA0200007800125C63@nat28.tlf.novell.com> <532AC9ED02000078001260C1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Z Zhang Cc: Andrew Cooper , "gordan@bobich.net" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 24.03.14 at 03:37, wrote: > Jan Beulich wrote on 2014-03-20: >>>>> On 20.03.14 at 01:48, "Zhang, Yang Z" wrote: >>> fake a device is a solution. But I am thinking (maybe I am wrong) why >>> not setup all VT-d entries under a bridge if passing a PCI device under >>> a bridge. Because when passing a PCI device under a bridge, all devices >>> under bridge should be assigned to the guest too. What current Xen dose >>> is only set the entry which has device, so why not extend it to setup >>> all entries? In this case, there is no user input is required. >> >> You'd have to prove that this doesn't impact isolation/security. > > Yes, this need more deeply think. > > BTW, do you see any potential issue with doing this? Not a concrete one - I simply think that security/isolation guarantees are easier to validate if permissions for a guest are kept to the smallest possible set. So without full proof of the security of above concept I think we should accept the new behavior only as an opt-in (via command line or domain config option). Jan