diff options
| author | Lu Baolu <[email protected]> | 2020-07-24 01:49:23 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2020-07-24 08:51:21 +0000 |
| commit | eb8d93ea3c1d35b0baf693dd0b7c87ec62358fc9 (patch) | |
| tree | 843709730712b90ce52349a5025c23b1a069f866 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | iommu/vt-d: Add a helper to get svm and sdev for pasid (diff) | |
| download | kernel-eb8d93ea3c1d35b0baf693dd0b7c87ec62358fc9.tar.gz kernel-eb8d93ea3c1d35b0baf693dd0b7c87ec62358fc9.zip | |
iommu/vt-d: Report page request faults for guest SVA
A pasid might be bound to a page table from a VM guest via the iommu
ops.sva_bind_gpasid. In this case, when a DMA page fault is detected
on the physical IOMMU, we need to inject the page fault request into
the guest. After the guest completes handling the page fault, a page
response need to be sent back via the iommu ops.page_response().
This adds support to report a page request fault. Any external module
which is interested in handling this fault should regiester a notifier
with iommu_register_device_fault_handler().
Co-developed-by: Jacob Pan <[email protected]>
Co-developed-by: Liu Yi L <[email protected]>
Signed-off-by: Jacob Pan <[email protected]>
Signed-off-by: Liu Yi L <[email protected]>
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
