diff options
author | Lu Baolu <[email protected]> | 2023-04-13 12:06:31 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-04-13 12:05:47 +0200 |
commit | 3d4c7cc3d168dc728dd3472688b2360b6db124e3 (patch) | |
tree | 93c90348dc8edc1f617e149114b488a3b2015b2a /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | a86fb7717320bf2c05701cbcfaab5afc452d1480 (diff) |
iommu/vt-d: Move iopf code from SVA to IOPF enabling path
Generally enabling IOMMU_DEV_FEAT_SVA requires IOMMU_DEV_FEAT_IOPF, but
some devices manage I/O Page Faults themselves instead of relying on the
IOMMU. Move IOPF related code from SVA to IOPF enabling path.
For the device drivers that relies on the IOMMU for IOPF through PCI/PRI,
IOMMU_DEV_FEAT_IOPF must be enabled before and disabled after
IOMMU_DEV_FEAT_SVA.
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions