diff options
| author | Si-Wei Liu <[email protected]> | 2023-10-21 09:25:14 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2023-11-01 13:19:59 +0000 |
| commit | 1d0f874bfe7871837fb215999979284d579fc373 (patch) | |
| tree | 1878a1c26cca83ef1ac64f2c611d76e9cc080bb0 /drivers/pci/controller/pci-host-generic.c | |
| parent | vdpa: introduce .reset_map operation callback (diff) | |
| download | kernel-1d0f874bfe7871837fb215999979284d579fc373.tar.gz kernel-1d0f874bfe7871837fb215999979284d579fc373.zip | |
vhost-vdpa: reset vendor specific mapping to initial state in .release
Devices with on-chip IOMMU or vendor specific IOTLB implementation may
need to restore iotlb mapping to the initial or default state using the
.reset_map op, as it's desirable for some parent devices to not work
with DMA ops and maintain a simple IOMMU model with .reset_map. In
particular, device reset should not cause mapping to go away on such
IOTLB model, so persistent mapping is implied across reset. Before the
userspace process using vhost-vdpa is gone, give it a chance to reset
iotlb back to the initial state in vhost_vdpa_cleanup().
Signed-off-by: Si-Wei Liu <[email protected]>
Acked-by: Eugenio Pérez <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Tested-by: Lei Yang <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
