i (Arei)
> ; Zhoujian (jay)
> Subject: Re: [Qemu-devel] [PATCH v2 2/2] vhost: double check used memslots
> number
>
> On Fri, 22 Dec 2017 23:15:09 +0200
> "Michael S. Tsirkin" wrote:
>
> > On Fri, Dec 22, 2017 at 07:48:55PM +0100, Igor Mammedov wrote:
>
On Fri, 22 Dec 2017 23:15:09 +0200
"Michael S. Tsirkin" wrote:
> On Fri, Dec 22, 2017 at 07:48:55PM +0100, Igor Mammedov wrote:
> > On Fri, 15 Dec 2017 16:45:55 +0800
> > Jay Zhou wrote:
> >
> > > If the VM already has N(N>8) available memory slots for vhost user,
> > > the VM will be crashed i
On Sat, 23 Dec 2017 08:27:25 +
"Zhoujian (jay)" wrote:
>
>
> > -Original Message-
> > From: Igor Mammedov [mailto:imamm...@redhat.com]
> > Sent: Saturday, December 23, 2017 2:49 AM
> > To: Zhoujian (jay)
> > Cc: qemu-devel@nongnu.org; m...@redhat.com; Huangweidong (C)
> > ; Gonglei
[...]
> > ---
> > hw/virtio/vhost.c | 27 +++
> > 1 file changed, 23 insertions(+), 4 deletions(-)
> >
> > diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index
> > 59a32e9..e45f5e2 100644
> > --- a/hw/virtio/vhost.c
> > +++ b/hw/virtio/vhost.c
> > @@ -1234,6 +1234,18
> -Original Message-
> From: Igor Mammedov [mailto:imamm...@redhat.com]
> Sent: Saturday, December 23, 2017 2:49 AM
> To: Zhoujian (jay)
> Cc: qemu-devel@nongnu.org; m...@redhat.com; Huangweidong (C)
> ; Gonglei (Arei) ;
> wangxin (U) ; Liuzhe (Cloud Open Labs, NFV)
> ; dgilb...@redhat.c
On Fri, Dec 22, 2017 at 07:48:55PM +0100, Igor Mammedov wrote:
> On Fri, 15 Dec 2017 16:45:55 +0800
> Jay Zhou wrote:
>
> > If the VM already has N(N>8) available memory slots for vhost user,
> > the VM will be crashed in vhost_user_set_mem_table if we try to
> > hotplug the first vhost user NIC.
On Fri, 15 Dec 2017 16:45:55 +0800
Jay Zhou wrote:
> If the VM already has N(N>8) available memory slots for vhost user,
> the VM will be crashed in vhost_user_set_mem_table if we try to
> hotplug the first vhost user NIC.
> This patch checks if memslots number exceeded or not after updating
> vh
If the VM already has N(N>8) available memory slots for vhost user,
the VM will be crashed in vhost_user_set_mem_table if we try to
hotplug the first vhost user NIC.
This patch checks if memslots number exceeded or not after updating
vhost_user_used_memslots.
Signed-off-by: Jay Zhou
---
hw/virti