]> www.infradead.org Git - users/jedix/linux-maple.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)
committerJoao Martins <joao.m.martins@oracle.com>
Sun, 27 Mar 2016 01:01:01 +0000 (02:01 +0100)
commit95bfc629e5cdda1590bf3e6fd2725dc8d4d5e956
tree28741a4c570ee691b613f7db9aacf775f38a4707
parent2506a4d21c2673a4b72d5d398d648405d730687e
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.

(cherry picked from commit 1cf6a6c82918c9aad4bb73a7e7379a649e4d8e50)
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
drivers/xen/balloon.c
include/xen/balloon.h