diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:40 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
commit | 463ba1e3b8cf080812895c5f26d95d8d7db2e692 (patch) | |
tree | 1c3ff4cbb4f335f9ff5c7f3256f134bb85b6a06b /net/vhost-vdpa-stub.c | |
parent | e966c0b781aebabd2c0f5eef91678f08ce1d068c (diff) |
vdpa: Export vhost_vdpa_dma_map and unmap calls
Shadow CVQ will copy buffers on qemu VA, so we avoid TOCTOU attacks from
the guest that could set a different state in qemu device model and vdpa
device.
To do so, it needs to be able to map these new buffers to the device.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/vhost-vdpa-stub.c')
0 files changed, 0 insertions, 0 deletions