From: Ian Campbell Subject: RE: Xen security advisory CVE-2011-1898 - VT-d (PCI passthrough) MSI Date: Wed, 18 May 2011 09:54:08 +0100 Message-ID: <1305708848.20907.109.camel@zakaz.uk.xensource.com> References: <4DD235010200007800070074@vpn.id2.novell.com> <4F65016F6CB04E49BFFA15D4F7B798D901B773E6D1@orsmsx506.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4F65016F6CB04E49BFFA15D4F7B798D901B773E6D1@orsmsx506.amr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Cihula, Joseph" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Tue, 2011-05-17 at 23:52 +0100, Cihula, Joseph wrote: > I still fail to see an argument that justifies panic=E2=80=99ing Xen wh= en > IOMMU is enabled on non-IR systems. And I don=E2=80=99t think the way = to > manage customer expectations is through SW freezing. Leaving the iommu=3Don behaviour the same as today but making iommu=3Dfor= ce require IR (with an explicit opt-out a la iommu=3Dforce,no-intremap) is possibly sufficient (and considerably less harsh than the previous proposal). Perhaps something like the following?=20 # HG changeset patch # Parent 3db330334e3512a5326bbed4881718a63eec171a diff -r 3db330334e35 -r 975cd3817d7a xen/drivers/passthrough/vtd/iommu.c --- a/xen/drivers/passthrough/vtd/iommu.c Fri May 13 14:41:18 2011 +0100 +++ b/xen/drivers/passthrough/vtd/iommu.c Mon May 16 11:37:41 2011 +0100 @@ -1987,7 +1987,7 @@ static int init_vtd_hw(void) dprintk(XENLOG_WARNING VTDPREFIX, "Interrupt Remapping not enabled\n"); =20 - if ( force_iommu && platform_supports_intremap() ) + if ( force_iommu ) panic("intremap remapping failed to enable with iomm= u=3Drequired/force in grub\n"); break; } I also considered=20 + if ( force_iommy && ( !tboot_in_measured_env() || platfor= m_supports_intremap() ) but I trusting the result of tboot_in_measured_env() in the non-TXT case seems a bit silly. Ian.