vhost: Add VhostShadowVirtqueue
authorEugenio Pérez <eperezma@redhat.com>
Mon, 14 Mar 2022 17:34:41 +0000 (18:34 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 15 Mar 2022 05:57:44 +0000 (13:57 +0800)
commit10857ec0ad5d201d524d20b477da1cf3f7f4a3b0
tree8d7965ac896df12e778ad684fb59179aae531a12
parentabe300d9d894f7138e1af7c8e9c88c04bfe98b37
vhost: Add VhostShadowVirtqueue

Vhost shadow virtqueue (SVQ) is an intermediate jump for virtqueue
notifications and buffers, allowing qemu to track them. While qemu is
forwarding the buffers and virtqueue changes, it is able to commit the
memory it's being dirtied, the same way regular qemu's VirtIO devices
do.

This commit only exposes basic SVQ allocation and free. Next patches of
the series add functionality like notifications and buffers forwarding.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/virtio/meson.build
hw/virtio/vhost-shadow-virtqueue.c [new file with mode: 0644]
hw/virtio/vhost-shadow-virtqueue.h [new file with mode: 0644]