Re: [PATCH 1/2] virtio_balloon: fix race by fill and leak

2016-01-01 Thread Michael S. Tsirkin
On Mon, Dec 28, 2015 at 08:35:12AM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered a bug > with ballooning. > > With repeated inflating and deflating cycle, guest memory( > ie, cat /proc/meminfo | grep MemTotal) is decreased and > couldn't be recovered. > > The

Re: [PATCH 1/2] virtio_balloon: fix race by fill and leak

2016-01-01 Thread Michael S. Tsirkin
On Mon, Dec 28, 2015 at 08:35:12AM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered a bug > with ballooning. > > With repeated inflating and deflating cycle, guest memory( > ie, cat /proc/meminfo | grep MemTotal) is decreased and > couldn't be recovered. > > The

Re: [PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Rafael Aquini
On Mon, Dec 28, 2015 at 08:35:12AM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered a bug > with ballooning. > > With repeated inflating and deflating cycle, guest memory( > ie, cat /proc/meminfo | grep MemTotal) is decreased and > couldn't be recovered. > > The

[PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Minchan Kim
During my compaction-related stuff, I encountered a bug with ballooning. With repeated inflating and deflating cycle, guest memory( ie, cat /proc/meminfo | grep MemTotal) is decreased and couldn't be recovered. The reason is balloon_lock doesn't cover release_pages_balloon so struct

Re: [PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Rafael Aquini
On Mon, Dec 28, 2015 at 08:35:12AM +0900, Minchan Kim wrote: > During my compaction-related stuff, I encountered a bug > with ballooning. > > With repeated inflating and deflating cycle, guest memory( > ie, cat /proc/meminfo | grep MemTotal) is decreased and > couldn't be recovered. > > The

[PATCH 1/2] virtio_balloon: fix race by fill and leak

2015-12-27 Thread Minchan Kim
During my compaction-related stuff, I encountered a bug with ballooning. With repeated inflating and deflating cycle, guest memory( ie, cat /proc/meminfo | grep MemTotal) is decreased and couldn't be recovered. The reason is balloon_lock doesn't cover release_pages_balloon so struct