From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiejun Chen Subject: [v4][PATCH 9/9] xen:vtd: make USB RMRR mapping safe Date: Fri, 22 Aug 2014 18:09:46 +0800 Message-ID: <1408702186-24432-10-git-send-email-tiejun.chen@intel.com> References: <1408702186-24432-1-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: <1408702186-24432-1-git-send-email-tiejun.chen@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: JBeulich@suse.com, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, yang.z.zhang@intel.com, kevin.tian@intel.com Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org We already reserve all RMRR mappings so USB should be safe with RMRR. Signed-off-by: Tiejun Chen --- xen/drivers/passthrough/vtd/iommu.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 042b882..319ae05 100644 --- 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 ) -- 1.9.1