summaryrefslogtreecommitdiff
path: root/scripts/diffconfig
diff options
context:
space:
mode:
authorJia Jia <physicalmtea@gmail.com>2026-07-24 14:09:19 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:15 -0400
commit22598f55a4c2b510b3df5e69e563387a963222ae (patch)
tree30ddc32c6df2304911c3eb67382163a5df2e35c1 /scripts/diffconfig
parentde845981da67a6b049080c87e605130b0c30adc5 (diff)
vhost-scsi: flush backend after device ioctls
vhost-scsi translates guest response descriptors into userspace iovecs when commands are submitted. Target-core completes those commands asynchronously, so VHOST_SET_MEM_TABLE can replace the memory table while an in-flight command still retains response iovecs translated through the old table. If the old mapping is reused after VHOST_SET_MEM_TABLE returns, command completion can write the response to an unrelated userspace object. Flush the vhost-scsi backend after vhost_dev_ioctl() handles a device ioctl. This waits for in-flight commands that can still use the old response iovecs before the ioctl returns. Signed-off-by: Jia Jia <physicalmtea@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260724060919.1569170-1-physicalmtea@gmail.com>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions