Re: [Qemu-devel] [PATCH for-2.4 v3 1/3] vhost: add vhost_has_free_slot() interface

2015-07-30 Thread Michael S. Tsirkin
On Thu, Jul 30, 2015 at 05:45:33PM +0200, Igor Mammedov wrote: > On Thu, 30 Jul 2015 18:28:05 +0300 > "Michael S. Tsirkin" wrote: > > > On Thu, Jul 30, 2015 at 12:11:57PM +0200, Igor Mammedov wrote: > > > it will allow for other parts of QEMU check if it's safe > > > to map memory region during h

Re: [Qemu-devel] [PATCH for-2.4 v3 1/3] vhost: add vhost_has_free_slot() interface

2015-07-30 Thread Igor Mammedov
On Thu, 30 Jul 2015 18:28:05 +0300 "Michael S. Tsirkin" wrote: > On Thu, Jul 30, 2015 at 12:11:57PM +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 for-2.4 v3 1/3] vhost: add vhost_has_free_slot() interface

2015-07-30 Thread Michael S. Tsirkin
On Thu, Jul 30, 2015 at 12:11:57PM +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 for-2.4 v3 1/3] vhost: add vhost_has_free_slot() interface

2015-07-30 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 --- v3: * add refcountin of limit by # vhost devices,