Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-17 Thread zhanghailiang
On 2014/8/14 17:56, Michael S. Tsirkin wrote: On Thu, Aug 14, 2014 at 05:09:00PM +0800, zhanghailiang wrote: On 2014/8/14 15:15, Hu Tao wrote: On Thu, Aug 14, 2014 at 02:31:41PM +0800, zhanghailiang wrote: On 2014/8/13 19:50, Michael S. Tsirkin wrote: On Wed, Aug 13, 2014 at 07:21:57PM +0800,

Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-14 Thread Michael S. Tsirkin
On Thu, Aug 14, 2014 at 05:09:00PM +0800, zhanghailiang wrote: > On 2014/8/14 15:15, Hu Tao wrote: > >On Thu, Aug 14, 2014 at 02:31:41PM +0800, zhanghailiang wrote: > >>On 2014/8/13 19:50, Michael S. Tsirkin wrote: > >>>On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote: > If we conf

Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-14 Thread zhanghailiang
On 2014/8/14 15:15, Hu Tao wrote: On Thu, Aug 14, 2014 at 02:31:41PM +0800, zhanghailiang wrote: On 2014/8/13 19:50, Michael S. Tsirkin wrote: On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote: If we configure qemu with realtime-mlock-on and memory-node-bind at the same time, Qemu

Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-14 Thread Hu Tao
On Thu, Aug 14, 2014 at 02:31:41PM +0800, zhanghailiang wrote: > On 2014/8/13 19:50, Michael S. Tsirkin wrote: > >On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote: > >>If we configure qemu with realtime-mlock-on and memory-node-bind at the > >>same time, > >>Qemu will fail to start, a

Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-13 Thread zhanghailiang
On 2014/8/13 19:50, Michael S. Tsirkin wrote: On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote: If we configure qemu with realtime-mlock-on and memory-node-bind at the same time, Qemu will fail to start, and mbind() fails with message "Input/output error". > From man page: int mbi

Re: [Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-13 Thread Michael S. Tsirkin
On Wed, Aug 13, 2014 at 07:21:57PM +0800, zhanghailiang wrote: > If we configure qemu with realtime-mlock-on and memory-node-bind at the same > time, > Qemu will fail to start, and mbind() fails with message "Input/output error". > > >From man page: > int mbind(void *addr, unsigned long len, int

[Qemu-devel] [PATCH] mlock: fix bug when mlockall called before mbind

2014-08-13 Thread zhanghailiang
If we configure qemu with realtime-mlock-on and memory-node-bind at the same time, Qemu will fail to start, and mbind() fails with message "Input/output error". >From man page: int mbind(void *addr, unsigned long len, int mode, unsigned long *nodemask, unsigned long maxnode,