Dump IOMMU p2m table
authorSantosh Jodh <santosh.jodh@citrix.com>
Wed, 22 Aug 2012 21:29:06 +0000 (22:29 +0100)
committerSantosh Jodh <santosh.jodh@citrix.com>
Wed, 22 Aug 2012 21:29:06 +0000 (22:29 +0100)
commit6de33e7c3301393580679dba4914c355782c4efb
tree5ea54f2c808264a8b3019949198cdd77670e4781
parent8aed1f12c4c087c5b31cbee8636b3d2d25efb363
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>
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/iommu.h
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h
xen/include/xen/iommu.h