mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
vhost: Move vhost_svq_kick call to vhost_svq_add
The series needs to expose vhost_svq_add with full functionality, including kick 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>
This commit is contained in:
parent
d93a2405ca
commit
98b5adef84
@ -246,6 +246,7 @@ static bool vhost_svq_add(VhostShadowVirtqueue *svq, VirtQueueElement *elem)
|
||||
}
|
||||
|
||||
svq->ring_id_maps[qemu_head] = elem;
|
||||
vhost_svq_kick(svq);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -306,7 +307,6 @@ static void vhost_handle_guest_kick(VhostShadowVirtqueue *svq)
|
||||
/* VQ is broken, just return and ignore any other kicks */
|
||||
return;
|
||||
}
|
||||
vhost_svq_kick(svq);
|
||||
}
|
||||
|
||||
virtio_queue_set_notification(svq->vq, true);
|
||||
|
Loading…
Reference in New Issue
Block a user