mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
052bd52fa9
commit
2ce68e4cf5
7 changed files with 57 additions and 0 deletions
6
stubs/vhost.c
Normal file
6
stubs/vhost.c
Normal file
|
@ -0,0 +1,6 @@
|
|||
#include "hw/virtio/vhost.h"
|
||||
|
||||
bool vhost_has_free_slot(void)
|
||||
{
|
||||
return true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue