summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorXiong Weimin <xiongweimin@kylinos.cn>2026-06-26 10:05:45 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:17 -0400
commite50521dcc5864356ae1933753bc96887eda160c7 (patch)
treef69e28130c3dca6c05eee7f9336dac85f9a845a6 /scripts/Makefile.thinlto
parentdb09a0f62f888da11bca2f4aba65a7b60b4eb6f5 (diff)
downloadlinux-next-e50521dcc5864356ae1933753bc96887eda160c7.tar.gz
linux-next-e50521dcc5864356ae1933753bc96887eda160c7.zip
vdpa_sim: hold iommu_lock across dma_unmap passthrough transition
vdpasim_dma_map() updates the IOTLB and the passthrough (iommu_pt) state under iommu_lock. vdpasim_dma_unmap() clears iommu_pt and resets the IOTLB before taking iommu_lock, then deletes the mapping while holding the lock. A concurrent dma_map(), dma_unmap(), or reset path that also touches the same address space can therefore observe or modify the IOTLB and iommu_pt state without consistent locking. Perform the passthrough transition and range deletion under the same iommu_lock scope, matching dma_map(). Tested-on: openEuler VM (6.16.8, /usr/src/linux-6.16.8) Tested-by: Xiong Weimin <xiongweimin@kylinos.cn> Signed-off-by: Xiong Weimin <xiongweimin@kylinos.cn> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260626020545.607600-3-15927021679@163.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions