summaryrefslogtreecommitdiffstats
path: root/drivers/misc/Kconfig
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2019-04-25 04:54:43 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-24 20:19:17 +0200
commit83a8afa72e9c0a200d9d400ce83a0cb5193b0e3d (patch)
tree0964cd0514e8624a48eb0622e140d08ece28bd76 /drivers/misc/Kconfig
parent418a3ab1e7785799193c0f8628cd0f01c00a03ae (diff)
downloadlinux-83a8afa72e9c0a200d9d400ce83a0cb5193b0e3d.tar.bz2
vmw_balloon: Compaction support
Add support for compaction for VMware balloon. Since unlike the virtio balloon, we also support huge-pages, which are not going through compaction, we keep these pages in vmballoon and handle this list separately. We use the same lock to protect both lists, as this lock is not supposed to be contended. Doing so also eliminates the need for the page_size lists. We update the accounting as needed to reflect inflation, deflation and migration to be reflected in vmstat. Since VMware balloon now provides statistics for inflation, deflation and migration in vmstat, select MEMORY_BALLOON in Kconfig. Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com> Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/Kconfig')
-rw-r--r--drivers/misc/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 3fa4adeaf8a2..6b0417b2fbc4 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -386,6 +386,7 @@ config SPEAR13XX_PCIE_GADGET
config VMWARE_BALLOON
tristate "VMware Balloon Driver"
depends on VMWARE_VMCI && X86 && HYPERVISOR_GUEST
+ select MEMORY_BALLOON
help
This is VMware physical memory management driver which acts
like a "balloon" that can be inflated to reclaim physical pages