Re: [Qemu-devel] [PATCH 1/2] vhost: add vhost_has_free_slot() interface

2015-07-29 Thread Michael S. Tsirkin
On Mon, Jul 20, 2015 at 03:49:29PM +0200, Igor Mammedov wrote: 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:

Re: [Qemu-devel] [PATCH 1/2] vhost: add vhost_has_free_slot() interface

2015-07-29 Thread Igor Mammedov
On Wed, 29 Jul 2015 13:20:24 +0300 Michael S. Tsirkin m...@redhat.com wrote: On Mon, Jul 20, 2015 at 03:49:29PM +0200, Igor Mammedov wrote: 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

[Qemu-devel] [PATCH 1/2] vhost: add vhost_has_free_slot() interface

2015-07-20 Thread Igor Mammedov
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 imamm...@redhat.com --- hw/virtio/vhost-backend.c