From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Xen security advisory CVE-2011-1898 - VT-d (PCI passthrough) MSI Date: Wed, 18 May 2011 11:03:48 +0100 Message-ID: References: <1305708829.20907.108.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1305708829.20907.108.camel@zakaz.uk.xensource.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: Ian Campbell , "Cihula, Joseph" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 18/05/2011 09:53, "Ian Campbell" wrote: > On Mon, 2011-05-16 at 22:34 +0100, Cihula, Joseph wrote: >>> - if ( iommu_intremap ) >>> - { >>> + >> >> Unless I'm misreading it, this will prevent users from specifying >> "no-intremap" to disable the use of IR. > > That wasn't my intention. > >> Why would you keep the 'if ( iommu_intremap )' on the previous code >> block but remove it here? > > To be honest this change was a little bit unrelated, which was naughty > of me. I saw: > if ( iommu_intremap ) { > THING A > } > if ( iommu_intremap ) { > THING B > } > and changed it to > if (iommu_intremap ) { > THING A > THING B > } > > Is there some subtlety to this code path that I've missed? 'THING A' conditionally clears iommu_intremap. -- Keir > Ian. > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel