]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commit
Add support for superpages (hugepages) in PV domain
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 08:58:38 +0000 (09:58 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 26 May 2009 08:58:38 +0000 (09:58 +0100)
commit6a9b5290e9d24efbc6271b4d7e80682b440c812e
treeb5ff5a8e6ab3e0fb38810b8b96434fc35ae18b26
parent2cda4bd1e1a623b7c99bf2266dcb9ff82aa0f463
Add support for superpages (hugepages) in PV domain

This patch adds the option "superpages" to the domain configuration
file. If it is set, the domain is populated using 2M pages.

This code does not support fallback to small pages.  If the domain can
not be created with 2M pages, the  create will fail.

The patch also includes support for saving and restoring domains with
the superpage flag set.  However, if a domain has freed small pages
within its physical page array and then extended the array, the
restore will fill in those freed pages.  It will then attempt to
allocate more than its memory limit and will fail.  This is
significant because apparently Linux does this during boot, thus a
freshly booted Linux image can not be saved and restored successfully.

Signed-off-by: Dave McCracken <dcm@mccr.org>
15 files changed:
tools/libxc/xc_dom.h
tools/libxc/xc_dom_boot.c
tools/libxc/xc_dom_compat_linux.c
tools/libxc/xc_dom_ia64.c
tools/libxc/xc_dom_x86.c
tools/libxc/xc_domain_restore.c
tools/libxc/xenguest.h
tools/python/xen/lowlevel/xc/xc.c
tools/python/xen/xend/XendCheckpoint.py
tools/python/xen/xend/XendConfig.py
tools/python/xen/xend/image.py
tools/python/xen/xm/create.dtd
tools/python/xen/xm/create.py
tools/python/xen/xm/xenapi_create.py
tools/xcutils/xc_restore.c