diff tools/python/xen/xm/create.dtd @ 19639:205b1badbcfd

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>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 26 09:58:38 2009 +0100 (2009-05-26)
parents 5c69f98c348e
line diff
     1.1 --- a/tools/python/xen/xm/create.dtd	Tue May 26 09:54:53 2009 +0100
     1.2 +++ b/tools/python/xen/xm/create.dtd	Tue May 26 09:58:38 2009 +0100
     1.3 @@ -54,6 +54,7 @@
     1.4                   actions_after_reboot   %NORMAL_EXIT; #REQUIRED
     1.5                   actions_after_crash    %CRASH_BEHAVIOUR; #REQUIRED
     1.6                   PCI_bus                CDATA #REQUIRED
     1.7 +                 superpages             CDATA #REQUIRED
     1.8                   security_label         CDATA #IMPLIED>
    1.10  <!ELEMENT memory EMPTY>