From: "Jan Beulich" Subject: Re: [PATCH 1/3] VT-d: suppress UR signaling for server chipsets Date: Mon, 07 Apr 2014 14:11:09 +0100 Message-ID: <5342C00D02000078000062F9@nat28.tlf.novell.com> References: <533D471D0200007800005104@nat28.tlf.novell.com> <533D48760200007800005120@nat28.tlf.novell.com> <53429624.4020406@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WX9KU-0001y9-V4 for xen-devel@lists.xenproject.org; Mon, 07 Apr 2014 13:11:15 +0000 In-Reply-To: <53429624.4020406@citrix.com> 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: Andrew Cooper Cc: Keir Fraser , Asit K Mallick , Donald D Dugger , Jun Nakajima , xen-devel , xiantao.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 07.04.14 at 14:12, wrote: > On 03/04/14 10:39, Jan Beulich wrote: >> Unspported Requests can be signaled for malformed writes to the MSI >> address region, e.g. due to buggy or malicious DMA set up to that >> region. These should normally result in IOMMU faults, but don't on >> the server chipsets dealt with here. >> >> IDs 0xe00, 0xe01, and 0xe04 ... 0xe0b (Ivytown) aren't needed here - >> Intel confirmed the issue to be fixed in hardware there. >> >> This is CVE-2013-3495 / XSA-59. >> >> Signed-off-by: Jan Beulich >> >> --- a/xen/drivers/passthrough/vtd/quirks.c >> +++ b/xen/drivers/passthrough/vtd/quirks.c >> @@ -390,12 +390,67 @@ void __init pci_vtd_quirk(struct pci_dev >> int bus = pdev->bus; >> int dev = PCI_SLOT(pdev->devfn); >> int func = PCI_FUNC(pdev->devfn); >> - int id, val; >> + int pos; >> + u32 val; >> >> - id = pci_conf_read32(seg, bus, dev, func, 0); >> - if ( id == 0x342e8086 || id == 0x3c288086 ) >> + if ( pci_conf_read16(seg, bus, dev, func, PCI_VENDOR_ID) != 0x8086 ) > > Can this using the new PCI_VENDOR_ID_INTEL? Yes, it could. The patch simply predates that addition by many months. Plus a little more care will be needed during the backport. But I guess I'll do it anyway. Jan