Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-25 Thread Igor Mammedov
On Wed, 24 Jun 2015 17:08:56 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 24, 2015 at 04:52:29PM +0200, Igor Mammedov wrote: On Wed, 24 Jun 2015 16:17:46 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 24, 2015 at 04:07:27PM +0200, Igor Mammedov wrote

Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Igor Mammedov
and you can assume at least 64 slots. Since 0 value's left unused, let's make that mean that the current userspace behaviour (trial and error) is required, just in case we want it back. Signed-off-by: Michael S. Tsirkin m...@redhat.com Cc: Igor Mammedov imamm...@redhat.com Cc: Paolo Bonzini pbonz

Re: [PATCH RFC] vhost: add ioctl to query nregions upper limit

2015-06-24 Thread Igor Mammedov
On Wed, 24 Jun 2015 16:17:46 +0200 Michael S. Tsirkin m...@redhat.com wrote: On Wed, Jun 24, 2015 at 04:07:27PM +0200, Igor Mammedov wrote: On Wed, 24 Jun 2015 15:49:27 +0200 Michael S. Tsirkin m...@redhat.com wrote: Userspace currently simply tries to give vhost as many regions

Re: [PATCH] vhost: support upto 509 memory regions

2015-05-19 Thread Igor Mammedov
: On Tue, Feb 17, 2015 at 11:59:48AM +0100, Paolo Bonzini wrote: On 17/02/2015 10:02, Michael S. Tsirkin wrote: Increasing VHOST_MEMORY_MAX_NREGIONS from 65 to 509 to match KVM_USER_MEM_SLOTS fixes issue for vhost-net. Signed-off-by: Igor Mammedov imamm...@redhat.com