summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorEugenio Pérez2022-07-20 08:59:39 +0200
committerJason Wang2022-07-20 10:58:08 +0200
commite966c0b781aebabd2c0f5eef91678f08ce1d068c (patch)
tree84162843e8ad1706d82cda1bde20accbfdee3372 /include/hw
parentvhost: add vhost_svq_poll (diff)
downloadqemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.tar.gz
qemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.tar.xz
qemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.zip
vhost: Add svq avail_handler callback
This allows external handlers to be aware of new buffers that the guest places in the virtqueue. When this callback is defined the ownership of the guest's virtqueue element is transferred to the callback. This means that if the user wants to forward the descriptor it needs to manually inject it. The callback is also free to process the command by itself and use the element with svq_push. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/hw')
0 files changed, 0 insertions, 0 deletions