diff options
author | Lu Baolu <[email protected]> | 2022-11-22 08:29:44 +0800 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2022-11-22 14:05:20 +0100 |
commit | c7be17c2903d4acbf9aa372bfb6e2a418387fce0 (patch) | |
tree | 53a0d155e19467c33b4b1635c3d74c259dd55f42 /scripts/generate_rust_analyzer.py | |
parent | ec62b4424174f41bdcedd08d12d7bed80088453d (diff) |
iommu/vt-d: Add device_block_translation() helper
If domain attaching to device fails, the IOMMU driver should bring the
device to blocking DMA state. The upper layer is expected to recover it
by attaching a new domain. Use device_block_translation() in the error
path of dev_attach to make the behavior specific.
The difference between device_block_translation() and the previous
dmar_remove_one_dev_info() is that, in the scalable mode, it is the
RID2PASID entry instead of context entry being cleared. As a result,
enabling PCI capabilities is moved up.
Signed-off-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions