22 lines
729 B
Diff
22 lines
729 B
Diff
|
# Commit 5f335544cf5b716b0af51223e33373c4a7d65e8c
|
||
|
# Date 2015-08-27 17:40:38 +0200
|
||
|
# Author Jan Beulich <jbeulich@suse.com>
|
||
|
# Committer Jan Beulich <jbeulich@suse.com>
|
||
|
IOMMU: skip domains without page tables when dumping
|
||
|
|
||
|
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>
|
||
|
|
||
|
--- a/xen/drivers/passthrough/iommu.c
|
||
|
+++ b/xen/drivers/passthrough/iommu.c
|
||
|
@@ -368,7 +368,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) )
|