iommu/amd: Do sanity check for address translation and irq remap of old dev table...
authorBaoquan He <bhe@redhat.com>
Wed, 9 Aug 2017 08:33:39 +0000 (16:33 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Aug 2017 16:14:39 +0000 (18:14 +0200)
commit53019a9e88cc14bae2780ba807faba87a5829891
tree10af6494953c6457329e48d034b4c6b6e12c7f8f
parent3ac3e5ee5ed56b07448f295902e44916eb6979fc
iommu/amd: Do sanity check for address translation and irq remap of old dev table entry

Firstly split the dev table entry copy into address translation part
and irq remapping part. Because these two parts could be enabled
independently.

Secondly do sanity check for address translation and irq remap of old
dev table entry separately.

Signed-off-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h