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

[Xen-changelog] [xen-unstable] amd iommu: Remove redundant checks from iommu emulation code path



# HG changeset patch
# User Wei Wang <wei.wang2@xxxxxxx>
# Date 1328796386 28800
# Node ID 6f6a6d1d2fb651d76d4f162eb984c01689fb4fc0
# Parent  18b9ea53c8ac0e2d6aee68dd50a50c0b08a01a1e
amd iommu: Remove redundant checks from iommu emulation code path

Signed-off-by: Wei Wang <wei.wang2@xxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 18b9ea53c8ac -r 6f6a6d1d2fb6 xen/drivers/passthrough/amd/iommu_guest.c
--- a/xen/drivers/passthrough/amd/iommu_guest.c Thu Feb 09 11:33:30 2012 +0000
+++ b/xen/drivers/passthrough/amd/iommu_guest.c Thu Feb 09 06:06:26 2012 -0800
@@ -805,9 +805,6 @@
     p2m_type_t t;
     struct guest_iommu *iommu = domain_iommu(d);
 
-    if ( !is_hvm_domain(d) || !iommu_enabled || !iommuv2_enabled )
-        return 0;
-
     if ( !iommu )
         return -EACCES;
 
@@ -896,9 +893,6 @@
 {
     struct guest_iommu *iommu;
 
-    if ( !is_hvm_domain(d) || !iommu_enabled || !iommuv2_enabled )
-        return;
-
     iommu = domain_iommu(d);
     if ( !iommu )
         return;

_______________________________________________
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®.