Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-02-15 Thread Linhaifeng
On 2015/2/2 7:29, Paolo Bonzini wrote: > > > On 17/12/2014 07:02, haifeng@huawei.com wrote: >> From: linhaifeng >> >> If we create VM with two or more numa nodes qemu will create two >> or more hugepage files but qemu only send one hugepage file fd >> to vhost-user when VM's memory size is

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-02-04 Thread Paolo Bonzini
On 04/02/2015 14:52, Michael S. Tsirkin wrote: > I'm not sure: does memory core ever give us two adjacent > RAM segments that we *can* merge? I don't think so. Memory core merges ranges already if the following holds: - same memory region - same dirty logging mode - same readonly behavior (ign

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-02-04 Thread Michael S. Tsirkin
On Mon, Feb 02, 2015 at 12:29:47AM +0100, Paolo Bonzini wrote: > > > On 17/12/2014 07:02, haifeng@huawei.com wrote: > > From: linhaifeng > > > > If we create VM with two or more numa nodes qemu will create two > > or more hugepage files but qemu only send one hugepage file fd > > to vhost-u

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-02-03 Thread Linhaifeng
On 2015/2/2 7:29, Paolo Bonzini wrote: > > > On 17/12/2014 07:02, haifeng@huawei.com wrote: >> From: linhaifeng >> >> If we create VM with two or more numa nodes qemu will create two >> or more hugepage files but qemu only send one hugepage file fd >> to vhost-user when VM's memory size is

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-02-01 Thread Paolo Bonzini
On 17/12/2014 07:02, haifeng@huawei.com wrote: > From: linhaifeng > > If we create VM with two or more numa nodes qemu will create two > or more hugepage files but qemu only send one hugepage file fd > to vhost-user when VM's memory size is 2G and with two numa nodes. > > Signed-off-by: li

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-01-29 Thread Linhaifeng
On 2015/1/29 18:51, Michael S. Tsirkin wrote: > On Thu, Jan 29, 2015 at 11:58:08AM +0800, Linhaifeng wrote: >> Hi,Michael S.Tsirkin >> >> The vhost-user device will not work if there are two numa nodes in VM. >> >> Should we fix this bug or ignore it ? > > I suggest we fix this bug. > I saw that

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-01-29 Thread Michael S. Tsirkin
On Thu, Jan 29, 2015 at 11:58:08AM +0800, Linhaifeng wrote: > Hi,Michael S.Tsirkin > > The vhost-user device will not work if there are two numa nodes in VM. > > Should we fix this bug or ignore it ? I suggest we fix this bug. I saw that you responded to self so I assume you will send v2 with th

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2015-01-28 Thread Linhaifeng
Hi,Michael S.Tsirkin The vhost-user device will not work if there are two numa nodes in VM. Should we fix this bug or ignore it ? On 2014/12/18 13:06, Linhaifeng wrote: > > > On 2014/12/17 14:02, haifeng@huawei.com wrote: >> From: linhaifeng >> >> If we create VM with two or more numa nod

Re: [Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2014-12-17 Thread Linhaifeng
On 2014/12/17 14:02, haifeng@huawei.com wrote: > From: linhaifeng > > If we create VM with two or more numa nodes qemu will create two > or more hugepage files but qemu only send one hugepage file fd > to vhost-user when VM's memory size is 2G and with two numa nodes. > > Signed-off-by: li

[Qemu-devel] [PATCH v1] vhost-user: fix not send all hugepage files to vhost-user

2014-12-16 Thread haifeng.lin
From: linhaifeng If we create VM with two or more numa nodes qemu will create two or more hugepage files but qemu only send one hugepage file fd to vhost-user when VM's memory size is 2G and with two numa nodes. Signed-off-by: linhaifeng --- hw/virtio/vhost-user.c | 78 +++