iommu: Merge iommu_fault_event and iopf_fault
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 12 Feb 2024 01:22:18 +0000 (09:22 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 16 Feb 2024 14:19:26 +0000 (15:19 +0100)
commit3f02a9dc70007c0e6299fda9c4f7a1e2277ec3d2
tree49aaa7900f4fd58b4ae3e36166f2d2469580e2b3
parent1ff25d798e52943d037accf15c675a6845d9776f
iommu: Merge iommu_fault_event and iopf_fault

The iommu_fault_event and iopf_fault data structures store the same
information about an iopf fault. They are also used in the same way.
Merge these two data structures into a single one to make the code
more concise and easier to maintain.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Yan Zhao <yan.y.zhao@intel.com>
Tested-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20240212012227.119381-8-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/svm.c
drivers/iommu/io-pgfault.c
drivers/iommu/iommu.c
include/linux/iommu.h