ia64/xen-unstable

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