summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJia Jia <physicalmtea@gmail.com>2026-08-20 16:03:30 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-09-04 17:06:02 -0400
commit9b860838767c480b0a3cd632c4fc9632fb24caf0 (patch)
treea0bced3e27bbec5a823f1b818d5ac04a64935ca6 /scripts/Makefile.thinlto
parenta80cbe245292804d01e4c7732bfada2768ba4cd8 (diff)
downloadlinux-next-9b860838767c480b0a3cd632c4fc9632fb24caf0.tar.gz
linux-next-9b860838767c480b0a3cd632c4fc9632fb24caf0.zip
vhost: invalidate vring access on IOTLB transitions
When ACCESS_PLATFORM changes, the addresses cached in desc, avail, and used change meaning with the address space. Clear the cached vring access state when the device IOTLB is installed or removed so stale IOVAs cannot be reused as direct userspace addresses. Keep device IOTLB initialization idempotent and apply the mode change even when a virtqueue backend is attached. Drop the device-wide IOTLB first, then clear each VQ state under its own mutex, and keep the old table alive until every VQ has completed the handoff. A successful live mode change leaves the backend attached but invalidates the cached vring addresses. Userspace must configure the vring addresses for the new address mode before data processing can resume. Fixes: 6b1e6cc7855b ("vhost: new device IOTLB API") Signed-off-by: Jia Jia <physicalmtea@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260820080332.313933-2-physicalmtea@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions