[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.2-testing] vtd: only use pass_thru for Domain0 (if HW supports it).



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.