vhost: add vhost_has_free_slot() interface
commit2ce68e4cf5be9b5176a3c3c372948d6340724d2d
authorIgor Mammedov <imammedo@redhat.com>
Tue, 6 Oct 2015 08:37:27 +0000 (6 10:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 22 Oct 2015 11:34:48 +0000 (22 14:34 +0300)
tree1454cb042a4b1ca1280dfda03bcaa1307dadb6f8
parent052bd52fa978d3f04bc476137ad6e1b9a697f9bd
vhost: add vhost_has_free_slot() interface

it will allow for other parts of QEMU check if it's safe
to map memory region during hotplug/runtime.
That way hotplug path will have a chance to cancel
hotplug operation instead of crashing in vhost_commit().

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-backend.c
hw/virtio/vhost-user.c
hw/virtio/vhost.c
include/hw/virtio/vhost-backend.h
include/hw/virtio/vhost.h
stubs/Makefile.objs
stubs/vhost.c [new file with mode: 0644]