WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] VT-d: improve RMRR region handling

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] VT-d: improve RMRR region handling
From: "Han, Weidong" <weidong.han@xxxxxxxxx>
Date: Tue, 22 Dec 2009 20:57:23 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 22 Dec 2009 04:58:02 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqDBk4hisTAMbScQV6KGPV0PS8v1w==
Thread-topic: [Xen-devel] [PATCH] VT-d: improve RMRR region handling
This patch improves RMRR regions handling as follows:
        1) Get rid of duplicated RMRR mapping: different devices may share the 
same RMRR regions, when they are assigned to the same guest, it only need to 
map the same RMRR region once because RMRR region must be identity mapped. Add 
an array of mapped RMRRs to achieve this.
        2) Needn't call domain_context_mapping to map the device again in 
iommu_prepare_rmrr_dev, and change iommu_prepare_rmrr_dev to 
rmrr_identity_mapping which is more suitable.
        3) A device may have more than one RMRR regions, remove "break" in 
intel_iommu_add_device to let it map all RMRR regions of the device.

Signed-off-by: Weidong Han <Weidong.han@xxxxxxxxx>

Attachment: fix-rmrr-mapping.patch
Description: fix-rmrr-mapping.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] VT-d: improve RMRR region handling, Han, Weidong <=