aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/iommu.h
diff options
context:
space:
mode:
authorSantosh Jodh <santosh.jodh@citrix.com>2012-08-22 22:29:06 +0100
committerSantosh Jodh <santosh.jodh@citrix.com>2012-08-22 22:29:06 +0100
commit6de33e7c3301393580679dba4914c355782c4efb (patch)
tree5ea54f2c808264a8b3019949198cdd77670e4781 /xen/include/xen/iommu.h
parent8aed1f12c4c087c5b31cbee8636b3d2d25efb363 (diff)
downloadxen-6de33e7c3301393580679dba4914c355782c4efb.tar.gz
xen-6de33e7c3301393580679dba4914c355782c4efb.tar.bz2
xen-6de33e7c3301393580679dba4914c355782c4efb.zip
Dump IOMMU p2m table
New key handler 'o' to dump the IOMMU p2m table for each domain. Skips dumping table for domain 0. Intel and AMD specific iommu_ops handler for dumping p2m table. Incorporated feedback from Jan Beulich and Wei Wang. Fixed indent printing with %*s. Removed superflous superpage and other attribute prints. Make next_level use consistent for AMD IOMMU dumps. Warn if found inconsistent. AMD IOMMU does not skip levels. Handle 2mb and 1gb IOMMU page size for AMD. Signed-off-by: Santosh Jodh <santosh.jodh@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/iommu.h')
-rw-r--r--xen/include/xen/iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/xen/iommu.h b/xen/include/xen/iommu.h
index 6f7fbf73ef..605c7b3662 100644
--- a/xen/include/xen/iommu.h
+++ b/xen/include/xen/iommu.h
@@ -141,6 +141,7 @@ struct iommu_ops {
void (*crash_shutdown)(void);
void (*iotlb_flush)(struct domain *d, unsigned long gfn, unsigned int page_count);
void (*iotlb_flush_all)(struct domain *d);
+ void (*dump_p2m_table)(struct domain *d);
};
void iommu_update_ire_from_apic(unsigned int apic, unsigned int reg, unsigned int value);