Skip to content

Commit 83a8afa

Browse files
anadavgregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Nadav Amit <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 418a3ab commit 83a8afa

File tree

2 files changed

+264
-38
lines changed

2 files changed

+264
-38
lines changed

drivers/misc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ config SPEAR13XX_PCIE_GADGET
386386
config VMWARE_BALLOON
387387
tristate "VMware Balloon Driver"
388388
depends on VMWARE_VMCI && X86 && HYPERVISOR_GUEST
389+
select MEMORY_BALLOON
389390
help
390391
This is VMware physical memory management driver which acts
391392
like a "balloon" that can be inflated to reclaim physical pages

0 commit comments

Comments
 (0)