From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tiejun Chen Subject: [v6][PATCH 7/7] xen/vtd: make USB RMRR mapping safe Date: Wed, 10 Sep 2014 13:49:50 +0800 Message-ID: <1410328190-6372-8-git-send-email-tiejun.chen@intel.com> References: <1410328190-6372-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: <1410328190-6372-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.campbell@citrix.com, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, kevin.tian@intel.com, yang.z.zhang@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 diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index d513dba..ea5d343 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