From: Jan Beulich Date: Thu, 27 Aug 2015 15:40:38 +0000 (+0200) Subject: IOMMU: skip domains without page tables when dumping X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2615 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5f335544cf5b716b0af51223e33373c4a7d65e8c;p=xen.git IOMMU: skip domains without page tables when dumping Reported-by: Roger Pau Monné Signed-off-by: Jan Beulich Tested-by: Roger Pau Monné Release-acked-by: Wei Liu --- 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) )