diff options
author | Lu Baolu <[email protected]> | 2024-11-04 09:40:23 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-11-05 13:32:16 +0100 |
commit | a98db518dde246e01ead53617dc0a30d6aaa3752 (patch) | |
tree | 697febcf29984ac783a9299f9ff4af5027359d2c /tools/perf/scripts/python/syscall-counts.py | |
parent | 9ecfcac1fe15e097cfd74663bcb8fbeaf3cc2910 (diff) |
iommu/vt-d: Enhance compatibility check for paging domain attach
The driver now supports domain_alloc_paging, ensuring that a valid device
pointer is provided whenever a paging domain is allocated. Additionally,
the dmar_domain attributes are set up at the time of allocation.
Consistent with the established semantics in the IOMMU core, if a domain is
attached to a device and found to be incompatible with the IOMMU hardware
capabilities, the operation will return an -EINVAL error. This implicitly
advises the caller to allocate a new domain for the device and attempt the
domain attachment again.
Rename prepare_domain_attach_device() to a more meaningful name.
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions