]> git.baikalelectronics.ru Git - kernel.git/commit
xen/balloon: use hotplugged pages for foreign mappings etc.
authorDavid Vrabel <david.vrabel@citrix.com>
Thu, 25 Jun 2015 15:29:18 +0000 (16:29 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Fri, 23 Oct 2015 13:20:05 +0000 (14:20 +0100)
commitdf798548d0d519b5de032f722a45ee98d10e009f
tree395640a0a5aeab7e0ebb807764923628f508dc54
parent5f7b7cf48a699c3b54fd51dcc27f43cfc623609f
xen/balloon: use hotplugged pages for foreign mappings etc.

alloc_xenballooned_pages() is used to get ballooned pages to back
foreign mappings etc.  Instead of having to balloon out real pages,
use (if supported) hotplugged memory.

This makes more memory available to the guest and reduces
fragmentation in the p2m.

This is only enabled if the xen.balloon.hotplug_unpopulated sysctl is
set to 1.  This sysctl defaults to 0 in case the udev rules to
automatically online hotplugged memory do not exist.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
v3:
- Add xen.balloon.hotplug_unpopulated sysctl to enable use of hotplug
  for unpopulated pages.
drivers/xen/balloon.c
include/xen/balloon.h