vhost: stop transfer elem ownership in vhost_handle_guest_kick
commit9c2ab2f1ec333be8614cc12272d4b91960704dbe
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:30:26 +0000 (23 20:30 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (2 10:22 +0800)
tree9cabb670beade6bc9e0e119ca2a89267b4b284bd
parent8b6d6119ad7fd983d192f60c4960fb6a9197d995
vhost: stop transfer elem ownership in vhost_handle_guest_kick

It was easier to allow vhost_svq_add to handle the memory. Now that we
will allow qemu to add elements to a SVQ without the guest's knowledge,
it's better to handle it in the caller.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c