From 5f335544cf5b716b0af51223e33373c4a7d65e8c Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 27 Aug 2015 17:40:38 +0200 Subject: [PATCH] IOMMU: skip domains without page tables when dumping MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Tested-by: Roger Pau Monné Release-acked-by: Wei Liu --- xen/drivers/passthrough/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iommu.c index fc7831e70a..d513773347 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -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) ) -- 2.30.2