]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: fix ballooned page accounting without hotplug enabled
authorJuergen Gross <jgross@suse.com>
Thu, 12 Dec 2019 14:17:50 +0000 (15:17 +0100)
committerJuergen Gross <jgross@suse.com>
Fri, 13 Dec 2019 07:39:52 +0000 (08:39 +0100)
commit38fc2698825da5188c54d2dd1106e096ab6a5cd3
tree34416758a6feb4200575f6c17dd42bf221e50e04
parent3f6b59bdd399e17f9e9f1b02ce9e3b21cb0c053a
xen/balloon: fix ballooned page accounting without hotplug enabled

When CONFIG_XEN_BALLOON_MEMORY_HOTPLUG is not defined
reserve_additional_memory() will set balloon_stats.target_pages to a
wrong value in case there are still some ballooned pages allocated via
alloc_xenballooned_pages().

This will result in balloon_process() no longer be triggered when
ballooned pages are freed in batches.

Reported-by: Nicholas Tsirakis <niko.tsirakis@gmail.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/balloon.c