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" 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 cancel > >

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

[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 --- hw/virtio/vhost-backend.c | 23 ++