diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2024-02-12 04:22:19 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-02-16 17:19:27 +0300 |
commit | 24b5d268b5ab95c12b5ae58a054d04bfa442f58f (patch) | |
tree | e867e8523b32cb7fd9442de4d370bf06353cf7ee /drivers/ras | |
parent | 3f02a9dc70007c0e6299fda9c4f7a1e2277ec3d2 (diff) | |
download | linux-24b5d268b5ab95c12b5ae58a054d04bfa442f58f.tar.xz |
iommu: Prepare for separating SVA and IOPF
Move iopf_group data structure to iommu.h to make it a minimal set of
faults that a domain's page fault handler should handle.
Add a new function, iopf_free_group(), to free a fault group after all
faults in the group are handled. This function will be made global so
that it can be called from other files, such as iommu-sva.c.
Move iopf_queue data structure to iommu.h to allow the workqueue to be
scheduled out of this file.
This will simplify the sequential patches.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.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-9-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/ras')
0 files changed, 0 insertions, 0 deletions