diff options
author | Lu Baolu <[email protected]> | 2024-07-02 14:34:39 +0800 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2024-07-09 13:54:32 -0300 |
commit | c714f15860fcca02fe0fd7c3f1f1fc35b1768ac1 (patch) | |
tree | d5dce67a05b4f66401ee995db6ad6e95e7843f95 /lib/memory-notifier-error-inject.c | |
parent | 8519e689834a3ecf9a36332a9abb1844bd34e459 (diff) |
iommufd: Add fault and response message definitions
iommu_hwpt_pgfaults represent fault messages that the userspace can
retrieve. Multiple iommu_hwpt_pgfaults might be put in an iopf group,
with the IOMMU_PGFAULT_FLAGS_LAST_PAGE flag set only for the last
iommu_hwpt_pgfault.
An iommu_hwpt_page_response is a response message that the userspace
should send to the kernel after finishing handling a group of fault
messages. The @dev_id, @pasid, and @grpid fields in the message
identify an outstanding iopf group for a device. The @cookie field,
which matches the cookie field of the last fault in the group, will
be used by the kernel to look up the pending message.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions