aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_dom_ia64.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-26 09:58:38 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-26 09:58:38 +0100
commit6a9b5290e9d24efbc6271b4d7e80682b440c812e (patch)
treeb5ff5a8e6ab3e0fb38810b8b96434fc35ae18b26 /tools/libxc/xc_dom_ia64.c
parent2cda4bd1e1a623b7c99bf2266dcb9ff82aa0f463 (diff)
downloadxen-6a9b5290e9d24efbc6271b4d7e80682b440c812e.tar.gz
xen-6a9b5290e9d24efbc6271b4d7e80682b440c812e.tar.bz2
xen-6a9b5290e9d24efbc6271b4d7e80682b440c812e.zip
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>
Diffstat (limited to 'tools/libxc/xc_dom_ia64.c')
-rw-r--r--tools/libxc/xc_dom_ia64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libxc/xc_dom_ia64.c b/tools/libxc/xc_dom_ia64.c
index 7610aa1d73..76f845ab1c 100644
--- a/tools/libxc/xc_dom_ia64.c
+++ b/tools/libxc/xc_dom_ia64.c
@@ -149,7 +149,7 @@ static void __init register_arch_hooks(void)
#include "xc_efi.h"
-int arch_setup_meminit(struct xc_dom_image *dom)
+int arch_setup_meminit(struct xc_dom_image *dom, int superpages)
{
xen_pfn_t pfn;
int rc;