Re: [PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-11 Thread walimis
On Thu, Aug 11, 2011 at 04:36:29PM +0300, Pekka Enberg wrote: >On Thu, 11 Aug 2011, Liming Wang wrote: >>If num_pages is negative, balloon will make kernel crash with >>"out of memory". So we check this value to avoid it to be negative. >> >>Signed-off-by: Liming Wang >>--- >>tools/kvm/virtio/ball

Re: [PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-11 Thread Pekka Enberg
On Thu, 11 Aug 2011, Liming Wang wrote: If num_pages is negative, balloon will make kernel crash with "out of memory". So we check this value to avoid it to be negative. Signed-off-by: Liming Wang --- tools/kvm/virtio/balloon.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) d

[PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-11 Thread Liming Wang
If num_pages is negative, balloon will make kernel crash with "out of memory". So we check this value to avoid it to be negative. Signed-off-by: Liming Wang --- tools/kvm/virtio/balloon.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/kvm/virtio/balloon.c b

Re: [PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-11 Thread Sasha Levin
On Thu, 2011-08-11 at 13:40 +0800, walimis wrote: > On Thu, Aug 11, 2011 at 08:37:01AM +0300, Sasha Levin wrote: > >On Thu, 2011-08-11 at 13:07 +0800, Liming Wang wrote: > >> If num_pages is negative, balloon will make kernel crash with > >> "out of memory". So we check this value to avoid it to be

Re: [PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-10 Thread walimis
On Thu, Aug 11, 2011 at 08:37:01AM +0300, Sasha Levin wrote: >On Thu, 2011-08-11 at 13:07 +0800, Liming Wang wrote: >> If num_pages is negative, balloon will make kernel crash with >> "out of memory". So we check this value to avoid it to be negative. >> >> Signed-off-by: Liming Wang >> --- >> t

Re: [PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-10 Thread Sasha Levin
On Thu, 2011-08-11 at 13:07 +0800, Liming Wang wrote: > If num_pages is negative, balloon will make kernel crash with > "out of memory". So we check this value to avoid it to be negative. > > Signed-off-by: Liming Wang > --- > tools/kvm/virtio/balloon.c |7 ++- > 1 files changed, 6 inser

[PATCH 2/3] kvm tools: check negative value of num_pages

2011-08-10 Thread Liming Wang
If num_pages is negative, balloon will make kernel crash with "out of memory". So we check this value to avoid it to be negative. Signed-off-by: Liming Wang --- tools/kvm/virtio/balloon.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/tools/kvm/virtio/balloon.c b/