diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:39 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
commit | e966c0b781aebabd2c0f5eef91678f08ce1d068c (patch) | |
tree | 84162843e8ad1706d82cda1bde20accbfdee3372 /page-vary.c | |
parent | 3f44d13dda83d390cc9563e56e7d337e4f6223f4 (diff) | |
download | qemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.zip qemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.tar.gz qemu-e966c0b781aebabd2c0f5eef91678f08ce1d068c.tar.bz2 |
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 'page-vary.c')
0 files changed, 0 insertions, 0 deletions