]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
IOMMU: skip domains without page tables when dumping
authorJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2015 15:40:38 +0000 (17:40 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Aug 2015 15:40:38 +0000 (17:40 +0200)
Reported-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Roger Pau Monné <roger.pau@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/drivers/passthrough/iommu.c

index fc7831e70a4a78ae4bdc048efe20edb2012845c2..d513773347d92db0c40c12552d8d9959bc0794d0 100644 (file)
@@ -411,7 +411,7 @@ static void iommu_dump_p2m_table(unsigned char key)
     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) )