From: "Jan Beulich" Subject: Re: [v6][PATCH 7/7] xen/vtd: make USB RMRR mapping safe Date: Thu, 18 Sep 2014 10:11:00 +0100 Message-ID: <541ABDC40200007800036116@mail.emea.novell.com> References: <1410328190-6372-1-git-send-email-tiejun.chen@intel.com> <1410328190-6372-8-git-send-email-tiejun.chen@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1410328190-6372-8-git-send-email-tiejun.chen@intel.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: Tiejun Chen Cc: kevin.tian@intel.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, yang.z.zhang@intel.com List-Id: xen-devel@lists.xenproject.org >>> On 10.09.14 at 07:49, wrote: > --- a/xen/drivers/passthrough/vtd/iommu.c > +++ b/xen/drivers/passthrough/vtd/iommu.c > @@ -2273,16 +2273,8 @@ static int intel_iommu_assign_device( > if ( ret ) > goto done; > > - /* FIXME: Because USB RMRR conflicts with guest bios region, > - * ignore USB RMRR temporarily. > - */ > seg = pdev->seg; > bus = pdev->bus; > - if ( is_usb_device(seg, bus, pdev->devfn) ) > - { > - ret = 0; > - goto done; > - } > > /* Setup rmrr identity mapping */ > for_each_rmrr_device( rmrr, bdf, i ) This orphans is_usb_device(), which therefore the patch should remove at once. Jan