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-changelog

[Xen-changelog] [xen-3.2-testing] vtd: only use pass_thru for Domain0 (i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.2-testing] vtd: only use pass_thru for Domain0 (if HW supports it).
From: "Xen patchbot-3.2-testing" <patchbot-3.2-testing@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Aug 2008 08:00:38 -0700
Delivery-date: Mon, 18 Aug 2008 08:00:24 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1219052785 -3600
# Node ID aa822ec641661c61727458b29cedd4e99dadad3e
# Parent  35812b94d74a9c480c177578a383eed572a21702
vtd: only use pass_thru for Domain0 (if HW supports it).

Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/vtd/intel-iommu.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 35812b94d74a -r aa822ec64166 xen/arch/x86/hvm/vmx/vtd/intel-iommu.c
--- a/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c    Thu Aug 14 10:21:30 2008 +0100
+++ b/xen/arch/x86/hvm/vmx/vtd/intel-iommu.c    Mon Aug 18 10:46:25 2008 +0100
@@ -1085,7 +1085,7 @@ static int domain_context_mapping_one(
 
     spin_lock_irqsave(&iommu->lock, flags);
 
-    if ( ecap_pass_thru(iommu->ecap) )
+    if ( ecap_pass_thru(iommu->ecap) && (domain->domain_id == 0) )
         context_set_translation_type(*context, CONTEXT_TT_PASS_THRU);
     else
     {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.2-testing] vtd: only use pass_thru for Domain0 (if HW supports it)., Xen patchbot-3.2-testing <=