iommu/vt-d: Move capability check code to cap_audit files
authorKyung Min Park <kyung.min.park@intel.com>
Thu, 4 Feb 2021 01:43:57 +0000 (09:43 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 4 Feb 2021 13:42:00 +0000 (14:42 +0100)
commit010bf5659e01b0a169e8e6b9e6a8b7e62209470d
tree57dff80e711070e1fd8cfdddefec9b57f6b31dfa
parentad3d19029979b19378ece2011fc8ce07be98c905
iommu/vt-d: Move capability check code to cap_audit files

Move IOMMU capability check and sanity check code to cap_audit files.
Also implement some helper functions for sanity checks.

Signed-off-by: Kyung Min Park <kyung.min.park@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210130184452.31711-1-kyung.min.park@intel.com
Link: https://lore.kernel.org/r/20210204014401.2846425-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/cap_audit.c
drivers/iommu/intel/cap_audit.h
drivers/iommu/intel/iommu.c