ia64/xen-unstable

annotate 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
children
rev   line source
ewan@14456 1 <!ENTITY % HTMLlat1 PUBLIC
ewan@14456 2 "-//W3C//ENTITIES Latin 1 for XHTML//EN"
ewan@14456 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
ewan@14456 4 %HTMLlat1;
ewan@14456 5 <!ENTITY % HTMLsymbol PUBLIC
ewan@14456 6 "-//W3C//ENTITIES Symbols for XHTML//EN"
ewan@14456 7 "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
ewan@14456 8 %HTMLsymbol;
ewan@14456 9 <!ENTITY % HTMLspecial PUBLIC
ewan@14456 10 "-//W3C//ENTITIES Special for XHTML//EN"
ewan@14456 11 "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
ewan@14456 12 %HTMLspecial;
ewan@14456 13 <!-- a Uniform Resource Identifier, see [RFC2396] -->
ewan@14456 14 <!ENTITY % URI "CDATA">
ewan@14456 15 <!ENTITY % NAMEID "name ID #REQUIRED">
ewan@14456 16 <!ENTITY % CRASH_BEHAVIOUR "( destroy
ewan@14456 17 | coredump_and_destroy
ewan@14456 18 | restart
ewan@14456 19 | coredump_and_restart
ewan@14456 20 | preserve
ewan@14456 21 | rename_restart )">
ewan@14456 22 <!ENTITY % NORMAL_EXIT "( destroy | restart )">
ewan@14456 23 <!ENTITY % VDI_TYPE "( system
ewan@14456 24 | user
ewan@14456 25 | ephemeral
ewan@14456 26 | suspend
ewan@14456 27 | crashdump )">
ewan@14456 28
ewan@14456 29 <!ELEMENT xm (vm*,
tom@14960 30 vdi*,
tom@14960 31 network*)>
ewan@14456 32
ewan@14456 33 <!ELEMENT version (#PCDATA)>
ewan@14456 34
ewan@14456 35 <!ELEMENT vm (name,
ewan@14456 36 version,
ewan@14456 37 (pv|hvm),
ewan@14456 38 memory,
ewan@14456 39 vbd*,
ewan@14456 40 vif*,
kfraser@15575 41 vtpm*,
keir@18218 42 pci*,
keir@18642 43 vscsi*,
tom@14674 44 console*,
tom@14674 45 platform*,
ewan@14456 46 vcpu_param*,
ewan@14456 47 other_config*)>
ewan@14456 48 <!ATTLIST vm is_a_template CDATA #REQUIRED
ewan@14456 49 auto_power_on CDATA #REQUIRED
keir@19368 50 s3_integrity CDATA #REQUIRED
ewan@14456 51 vcpus_max CDATA #REQUIRED
ewan@14456 52 vcpus_at_startup CDATA #REQUIRED
ewan@14456 53 actions_after_shutdown %NORMAL_EXIT; #REQUIRED
ewan@14456 54 actions_after_reboot %NORMAL_EXIT; #REQUIRED
ewan@14456 55 actions_after_crash %CRASH_BEHAVIOUR; #REQUIRED
kfraser@15575 56 PCI_bus CDATA #REQUIRED
keir@19639 57 superpages CDATA #REQUIRED
kfraser@15575 58 security_label CDATA #IMPLIED>
ewan@14456 59
ewan@14456 60 <!ELEMENT memory EMPTY>
ewan@14456 61 <!ATTLIST memory static_min CDATA #REQUIRED
ewan@14456 62 static_max CDATA #REQUIRED
ewan@14456 63 dynamic_min CDATA #REQUIRED
ewan@14456 64 dynamic_max CDATA #REQUIRED>
ewan@14456 65
ewan@14456 66 <!ELEMENT vbd (qos_algorithm_param*)>
ewan@14456 67 <!ATTLIST vbd %NAMEID;
ewan@14456 68 mode (RO | RW) #REQUIRED
ewan@14456 69 vdi IDREF #REQUIRED
ewan@14456 70 device CDATA #REQUIRED
ewan@14456 71 bootable CDATA #REQUIRED
ewan@14456 72 type (CD | disk) #REQUIRED
ewan@14456 73 qos_algorithm_type CDATA #REQUIRED>
ewan@14456 74
ewan@14456 75 <!ELEMENT vif (qos_algorithm_param*)>
ewan@14456 76 <!ATTLIST vif %NAMEID;
ewan@14456 77 mac CDATA #REQUIRED
ewan@14456 78 mtu CDATA #REQUIRED
ewan@14456 79 device CDATA #REQUIRED
ewan@14456 80 qos_algorithm_type CDATA #REQUIRED
kfraser@15625 81 network CDATA #IMPLIED
kfraser@15625 82 security_label CDATA #IMPLIED>
ewan@14456 83
kfraser@15575 84 <!ELEMENT vtpm (name*)>
kfraser@15575 85 <!ATTLIST vtpm backend CDATA #REQUIRED>
kfraser@15575 86
keir@19007 87 <!ELEMENT pci (pci_opt*)>
keir@18218 88 <!ATTLIST pci domain CDATA #REQUIRED
keir@18218 89 bus CDATA #REQUIRED
keir@18218 90 slot CDATA #REQUIRED
keir@18218 91 func CDATA #REQUIRED
keir@19007 92 opts_str CDATA #IMPLIED
keir@19513 93 vslot CDATA #IMPLIED>
keir@18218 94
keir@18642 95 <!ELEMENT vscsi EMPTY>
keir@18642 96 <!ATTLIST vscsi p-dev CDATA #REQUIRED
keir@18642 97 v-dev CDATA #REQUIRED>
keir@18642 98
tom@14674 99 <!ELEMENT console (other_config*)>
tom@14674 100 <!ATTLIST console protocol (vt100|rfb|rdp) #REQUIRED>
tom@14674 101
ewan@14456 102 <!ELEMENT pv EMPTY>
ewan@14456 103 <!ATTLIST pv kernel CDATA #REQUIRED
ewan@14456 104 bootloader CDATA #REQUIRED
ewan@14456 105 ramdisk CDATA #REQUIRED
ewan@14456 106 args CDATA #REQUIRED
ewan@14456 107 bootloader_args CDATA #REQUIRED>
ewan@14456 108
ewan@14456 109 <!ELEMENT hvm (boot_param*)>
ewan@14456 110 <!ATTLIST hvm boot_policy CDATA #REQUIRED>
ewan@14456 111
ewan@14456 112 <!ELEMENT boot_param EMPTY>
ewan@14456 113 <!ATTLIST boot_param key CDATA #REQUIRED
ewan@14456 114 value CDATA #REQUIRED>
ewan@14456 115
ewan@14456 116 <!ELEMENT vdi (name)>
ewan@14456 117 <!ATTLIST vdi %NAMEID;
ewan@14456 118 src %URI; #REQUIRED
ewan@14456 119 type %VDI_TYPE; #REQUIRED
ewan@14456 120 size CDATA #REQUIRED
tom@14820 121 sharable CDATA #REQUIRED
ewan@14456 122 read_only CDATA #REQUIRED>
ewan@14456 123
tom@14960 124 <!ELEMENT network (name,
tom@14960 125 other_config*)>
tom@14960 126 <!ATTLIST network %NAMEID;
tom@14960 127 default_gateway CDATA #REQUIRED
tom@14960 128 default_netmask CDATA #REQUIRED>
tom@14960 129
ewan@14456 130 <!ELEMENT name (label,
ewan@14456 131 description)>
ewan@14456 132
ewan@14456 133 <!ELEMENT label (#PCDATA)>
ewan@14456 134 <!ELEMENT description (#PCDATA)>
ewan@14456 135
tom@14674 136 <!ELEMENT platform EMPTY>
tom@14674 137 <!ATTLIST platform key CDATA #REQUIRED
tom@14674 138 value CDATA #REQUIRED>
tom@14674 139
ewan@14456 140 <!ELEMENT vcpu_param EMPTY>
ewan@14456 141 <!ATTLIST vcpu_param key CDATA #REQUIRED
ewan@14456 142 value CDATA #REQUIRED>
ewan@14456 143
keir@19007 144 <!ELEMENT pci_opt EMPTY>
keir@19007 145 <!ATTLIST pci_opt key CDATA #REQUIRED
keir@19007 146 value CDATA #REQUIRED>
keir@19007 147
ewan@14456 148 <!ELEMENT other_config EMPTY>
ewan@14456 149 <!ATTLIST other_config key CDATA #REQUIRED
ewan@14569 150 value CDATA #REQUIRED>
ewan@14456 151
ewan@14456 152 <!ELEMENT qos_algorithm_param EMPTY>
ewan@14456 153 <!ATTLIST qos_algorithm_param key CDATA #REQUIRED
ewan@14456 154 value CDATA #REQUIRED>