amd iommu: Cleanup iommu pci capabilites detection
authorWei Wang <wei.wang2@amd.com>
Fri, 11 Nov 2011 11:03:21 +0000 (12:03 +0100)
committerWei Wang <wei.wang2@amd.com>
Fri, 11 Nov 2011 11:03:21 +0000 (12:03 +0100)
commit756273ab103c20be805fcbea1c3dbee6aed73e71
treee9e7f9bd65f38a16c2375fe91d249b2e646da614
parentce56a70bd78a43e59266d884c1398c1ede2f3b89
amd iommu: Cleanup iommu pci capabilites detection

* Define new structure to represent capability block.
* Remove unnecessary read for unused information.
* Add sanity check into get_iommu_capabilities.
* iommu capability offset is 16 bit not 8 bit, fix that.

Signed-off-by: Wei Wang <wei.wang2@amd.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_detect.c
xen/include/asm-x86/amd-iommu.h
xen/include/asm-x86/hvm/svm/amd-iommu-defs.h