Skip to contentSkip to conversation

IOMMU: skip domains without page tables when dumping

PATCH In review Jan Beulich 3 participants 3 messages Aug 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IOMMU: skip domains without page tables when dumping

xen/drivers/passthrough/iommu.c +1 -1
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne
     ops = iommu_get_ops();
     for_each_domain(d)
     {
-        if ( is_hardware_domain(d) )
+        if ( is_hardware_domain(d) || need_iommu(d) <= 0 )
             continue;
 
         if ( iommu_use_hap_pt(d) )

IOMMU: skip domains without page tables when dumping

xen/drivers/passthrough/iommu.c +1 -1
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne
     ops = iommu_get_ops();
     for_each_domain(d)
     {
-        if ( is_hardware_domain(d) )
+        if ( is_hardware_domain(d) || need_iommu(d) <= 0 )
             continue;
 
         if ( iommu_use_hap_pt(d) )

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Tested-by Acked-by on v1 1/1
#1 lore raw

Thanks, this solves the problem.

El 27/08/15 a les 16.04, Jan Beulich ha escrit:

Quoted 2 lines

xen/drivers/passthrough/iommu.c static void iommu_dump_p2m_table(unsigne · line 417

Quoted 13 lines
xen/drivers/passthrough/iommu.c +1 -1
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne
     ops = iommu_get_ops();
     for_each_domain(d)
     {
-        if ( is_hardware_domain(d) )
+        if ( is_hardware_domain(d) || need_iommu(d) <= 0 )
             continue;
 
         if ( iommu_use_hap_pt(d) )

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
In reply to Jan Beulich
Quoted 3 lines · Jan Beulich
Quoted 30 lines
xen/drivers/passthrough/iommu.c +1 -1
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne
     ops = iommu_get_ops();
     for_each_domain(d)
     {
-        if ( is_hardware_domain(d) )
+        if ( is_hardware_domain(d) || need_iommu(d) <= 0 )
             continue;
 
         if ( iommu_use_hap_pt(d) )

IOMMU: skip domains without page tables when dumping

xen/drivers/passthrough/iommu.c +1 -1
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigne
     ops = iommu_get_ops();
     for_each_domain(d)
     {
-        if ( is_hardware_domain(d) )
+        if ( is_hardware_domain(d) || need_iommu(d) <= 0 )
             continue;
 
         if ( iommu_use_hap_pt(d) )