2007-01-09 16:29:18 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
|
|
|
|
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
|
|
<!-- We handle only document defining a domain -->
|
|
|
|
<start>
|
|
|
|
<ref name='domain'/>
|
|
|
|
</start>
|
|
|
|
|
2008-02-05 19:27:37 +00:00
|
|
|
<!--
|
2007-01-09 16:29:18 +00:00
|
|
|
We handle only document defining a domain
|
2007-01-10 15:20:46 +00:00
|
|
|
-->
|
|
|
|
<define name='domain'>
|
|
|
|
<element name="domain">
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='hvs'/>
|
2007-01-09 16:29:18 +00:00
|
|
|
<ref name='ids'/>
|
|
|
|
<interleave>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='os'/>
|
|
|
|
<ref name='clock'/>
|
2007-01-09 16:29:18 +00:00
|
|
|
<ref name='resources'/>
|
|
|
|
<ref name='features'/>
|
|
|
|
<ref name='termination'/>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<ref name='devices'/>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
</interleave>
|
2008-07-08 12:05:13 +00:00
|
|
|
</element>
|
2007-01-10 15:20:46 +00:00
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='hvs'>
|
|
|
|
<attribute name='type'>
|
|
|
|
<choice>
|
|
|
|
<value>xen</value>
|
|
|
|
<value>kvm</value>
|
|
|
|
<value>kqemu</value>
|
|
|
|
<value>qemu</value>
|
|
|
|
<value>lxc</value>
|
|
|
|
<value>openvz</value>
|
|
|
|
<value>test</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='os'>
|
|
|
|
<choice>
|
|
|
|
<ref name='osxen'/>
|
|
|
|
<ref name='oshvm'/>
|
2008-08-01 13:31:37 +00:00
|
|
|
<ref name='osexe'/>
|
2008-07-08 12:05:13 +00:00
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='osxen'>
|
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<optional>
|
|
|
|
<ref name='bootloader'/>
|
|
|
|
</optional>
|
|
|
|
<element name='os'>
|
|
|
|
<ref name='ostypexen'/>
|
|
|
|
<ref name='osbootkernel'/>
|
|
|
|
</element>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<ref name='bootloader'/>
|
|
|
|
<optional>
|
|
|
|
<element name='os'>
|
|
|
|
<ref name='ostypexen'/>
|
|
|
|
<optional>
|
|
|
|
<ref name='osbootkernel'/>
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</group>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
|
|
|
<define name='oshvm'>
|
|
|
|
<element name='os'>
|
|
|
|
<ref name='ostypehvm'/>
|
2007-01-10 15:20:46 +00:00
|
|
|
<interleave>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<element name='loader'>
|
|
|
|
<ref name='absFilePath'/>
|
2007-01-10 15:20:46 +00:00
|
|
|
</element>
|
2008-07-08 12:05:13 +00:00
|
|
|
</optional>
|
|
|
|
<choice>
|
|
|
|
<ref name='osbootkernel'/>
|
|
|
|
<ref name='osbootdev'/>
|
|
|
|
</choice>
|
2007-01-10 15:20:46 +00:00
|
|
|
</interleave>
|
2008-07-08 12:05:13 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
|
|
|
<define name='ostypexen'>
|
|
|
|
<element name='type'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='arch'>
|
|
|
|
<choice>
|
|
|
|
<value>i686</value>
|
|
|
|
<value>x86_64</value>
|
|
|
|
<value>ia64</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='machine'>
|
|
|
|
<choice>
|
|
|
|
<value>xenpv</value>
|
|
|
|
<value>xenner</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<choice>
|
|
|
|
<value>xen</value>
|
|
|
|
<value>linux</value>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='ostypehvm'>
|
|
|
|
<element name='type'>
|
|
|
|
<optional>
|
|
|
|
<choice>
|
|
|
|
<ref name='hvmx86'/>
|
|
|
|
<ref name='hvmmips'/>
|
|
|
|
<ref name='hvmsparc'/>
|
|
|
|
<ref name='hvmppc'/>
|
|
|
|
</choice>
|
|
|
|
</optional>
|
|
|
|
<value>hvm</value>
|
|
|
|
</element>
|
2007-01-10 15:20:46 +00:00
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='hvmx86'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='arch'>
|
|
|
|
<choice>
|
2007-04-19 11:11:06 +00:00
|
|
|
<value>i686</value>
|
2007-01-10 15:20:46 +00:00
|
|
|
<value>x86_64</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='machine'>
|
|
|
|
<choice>
|
2008-08-01 10:53:41 +00:00
|
|
|
<value>xenfv</value>
|
2007-01-10 15:20:46 +00:00
|
|
|
<value>pc</value>
|
|
|
|
<value>isapc</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</group>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='hvmmips'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='arch'>
|
|
|
|
<value>mips</value>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='machine'>
|
|
|
|
<value>mips</value>
|
|
|
|
</attribute>
|
|
|
|
</group>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='hvmsparc'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='arch'>
|
|
|
|
<value>sparc</value>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='machine'>
|
|
|
|
<value>sun4m</value>
|
|
|
|
</attribute>
|
|
|
|
</group>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='hvmppc'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='arch'>
|
|
|
|
<value>ppc</value>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='machine'>
|
|
|
|
<choice>
|
|
|
|
<value>g3bw</value>
|
|
|
|
<value>mac99</value>
|
|
|
|
<value>prep</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</group>
|
|
|
|
</define>
|
|
|
|
|
2007-01-09 16:29:18 +00:00
|
|
|
|
2008-08-01 13:31:37 +00:00
|
|
|
<define name='osexe'>
|
|
|
|
<element name='os'>
|
|
|
|
<element name='type'>
|
|
|
|
<value>exe</value>
|
|
|
|
</element>
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name='init'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-02-05 19:27:37 +00:00
|
|
|
<!--
|
2007-01-09 16:29:18 +00:00
|
|
|
The Identifiers can be:
|
|
|
|
- an optional id attribute with a number on the domain element
|
|
|
|
- a mandatory name
|
|
|
|
- an optional uuid
|
|
|
|
-->
|
|
|
|
<define name='ids'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='id'>
|
|
|
|
<ref name='unsignedInt'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<interleave>
|
|
|
|
<element name="name">
|
|
|
|
<ref name='domainName'/>
|
|
|
|
</element>
|
|
|
|
<optional>
|
|
|
|
<element name="uuid">
|
|
|
|
<ref name='UUID'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Resources usage defines the amount of memory (maximum and possibly
|
|
|
|
current usage) and number of virtual CPUs used by that domain.
|
2007-01-10 10:08:06 +00:00
|
|
|
We can't check here the rule that currentMemory <= memory
|
2007-01-09 16:29:18 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
<define name='resources'>
|
|
|
|
<interleave>
|
|
|
|
<element name='memory'>
|
|
|
|
<ref name='memoryKB'/>
|
|
|
|
</element>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
|
|
|
<element name='currentMemory'>
|
|
|
|
<ref name='memoryKB'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='vcpu'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='cpuset' />
|
|
|
|
</optional>
|
2007-01-10 10:08:06 +00:00
|
|
|
<ref name='countCPU'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='clock'>
|
|
|
|
<optional>
|
|
|
|
<element name='clock'>
|
|
|
|
<attribute name='offset'>
|
|
|
|
<choice>
|
|
|
|
<value>localtime</value>
|
|
|
|
<value>utc</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
2007-01-10 10:08:06 +00:00
|
|
|
<!--
|
|
|
|
A bootloader may be used to extract the OS information instead of
|
|
|
|
defining the OS parameter in the instance. It points just to the
|
|
|
|
binary or script used to extract the data from the first disk device.
|
|
|
|
-->
|
|
|
|
<define name='bootloader'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<interleave>
|
|
|
|
<element name='bootloader'>
|
|
|
|
<choice>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
<empty/>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
<optional>
|
|
|
|
<element name='bootloader_args'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2007-01-09 16:29:18 +00:00
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='osbootkernel'>
|
2007-01-09 16:29:18 +00:00
|
|
|
<interleave>
|
|
|
|
<element name='kernel'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</element>
|
|
|
|
<optional>
|
|
|
|
<element name='initrd'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
|
|
|
<element name='root'>
|
|
|
|
<ref name='devicePath'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
<optional>
|
|
|
|
<element name='cmdline'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='osbootdev'>
|
|
|
|
<element name='boot'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<choice>
|
|
|
|
<value>hd</value>
|
|
|
|
<value>fd</value>
|
|
|
|
<value>cdrom</value>
|
|
|
|
<value>network</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
2007-01-09 16:29:18 +00:00
|
|
|
</element>
|
2008-07-08 12:05:13 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
|
|
|
|
<define name='diskspec'>
|
|
|
|
<optional>
|
|
|
|
<ref name='driver'/>
|
|
|
|
</optional>
|
|
|
|
<ref name='target'/>
|
|
|
|
<optional>
|
|
|
|
<element name='readonly'>
|
|
|
|
<empty/>
|
2007-01-09 16:29:18 +00:00
|
|
|
</element>
|
2008-07-08 12:05:13 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='shareable'>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
A disk description can be either of type file or block
|
|
|
|
The name of the attribute on the source element depends on the type
|
|
|
|
|
|
|
|
-->
|
|
|
|
<define name='disk'>
|
|
|
|
<element name='disk'>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='device'>
|
|
|
|
<choice>
|
|
|
|
<value>floppy</value>
|
|
|
|
<value>disk</value>
|
|
|
|
<value>cdrom</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>file</value>
|
2008-07-08 12:05:13 +00:00
|
|
|
</attribute>
|
2007-01-09 16:29:18 +00:00
|
|
|
<interleave>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<element name='source'>
|
|
|
|
<attribute name='file'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
2007-01-10 10:08:06 +00:00
|
|
|
</optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='diskspec'/>
|
|
|
|
</interleave>
|
2007-01-09 16:29:18 +00:00
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<value>block</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<element name='source'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
2007-01-10 10:08:06 +00:00
|
|
|
</optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='diskspec'/>
|
|
|
|
</interleave>
|
2007-01-09 16:29:18 +00:00
|
|
|
</group>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='diskspec'/>
|
2007-01-09 16:29:18 +00:00
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='target'>
|
|
|
|
<element name='target'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='bus'>
|
|
|
|
<choice>
|
|
|
|
<value>ide</value>
|
|
|
|
<value>virtio</value>
|
|
|
|
<value>fdc</value>
|
|
|
|
<value>xen</value>
|
2008-08-08 15:03:00 +00:00
|
|
|
<value>usb</value>
|
2008-07-08 12:05:13 +00:00
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2007-01-10 10:08:06 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
2008-02-05 19:27:37 +00:00
|
|
|
Disk may use a special driver for access. Currently this is
|
2007-01-10 10:08:06 +00:00
|
|
|
only defined for Xen for tap/aio and file, but will certainly be
|
|
|
|
extended in the future, and libvirt doesn't look for specific values.
|
|
|
|
-->
|
|
|
|
<define name='driver'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<element name='driver'>
|
2009-01-30 17:15:39 +00:00
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<ref name='driverFormat'/>
|
|
|
|
<optional>
|
|
|
|
<ref name='driverCache'/>
|
|
|
|
</optional>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<optional>
|
|
|
|
<ref name='driverFormat'/>
|
|
|
|
</optional>
|
|
|
|
<ref name='driverCache'/>
|
|
|
|
</group>
|
|
|
|
</choice>
|
2008-07-08 12:05:13 +00:00
|
|
|
<empty/>
|
|
|
|
</element>
|
2007-01-09 16:29:18 +00:00
|
|
|
</define>
|
2008-08-01 13:31:37 +00:00
|
|
|
|
2009-01-30 17:15:39 +00:00
|
|
|
<define name='driverFormat'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<ref name='genericName'/>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name='type'>
|
|
|
|
<ref name='genericName'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='driverCache'>
|
|
|
|
<attribute name='cache'>
|
|
|
|
<choice>
|
|
|
|
<value>none</value>
|
|
|
|
<value>writeback</value>
|
|
|
|
<value>writethrough</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</define>
|
|
|
|
|
2008-08-01 13:31:37 +00:00
|
|
|
<define name='filesystem'>
|
|
|
|
<element name='filesystem'>
|
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>file</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='file'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
<ref name='filesystemtgt'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>block</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
<ref name='filesystemtgt'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>mount</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='dir'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
<ref name='filesystemtgt'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>template</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<ref name='genericName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
<ref name='filesystemtgt'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='filesystemtgt'>
|
|
|
|
<element name='target'>
|
|
|
|
<attribute name='dir'>
|
|
|
|
<ref name='absDirPath'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2007-01-09 16:29:18 +00:00
|
|
|
<!--
|
2007-01-10 10:08:06 +00:00
|
|
|
An interface description can either be of type bridge in which case
|
|
|
|
it will use a bridging source, or of type ethernet which uses a device
|
|
|
|
source and a device target instead. They both share a set of interface
|
2008-07-08 12:05:13 +00:00
|
|
|
options. FIXME
|
2007-01-09 16:29:18 +00:00
|
|
|
-->
|
|
|
|
<define name='interface'>
|
|
|
|
<element name='interface'>
|
2007-01-10 10:08:06 +00:00
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>bridge</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='bridge'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2007-01-10 10:08:06 +00:00
|
|
|
<ref name='interface-options'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>ethernet</value>
|
|
|
|
</attribute>
|
2008-07-08 12:05:13 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name='source'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<ref name='interface-options'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>network</value>
|
|
|
|
</attribute>
|
2007-01-10 10:08:06 +00:00
|
|
|
<interleave>
|
|
|
|
<element name='source'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<attribute name='network'>
|
2007-01-10 10:08:06 +00:00
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
<ref name='interface-options'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
2007-01-10 15:20:46 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>user</value>
|
|
|
|
</attribute>
|
|
|
|
<interleave>
|
|
|
|
<ref name='interface-options'/>
|
|
|
|
</interleave>
|
|
|
|
</group>
|
2007-01-10 10:08:06 +00:00
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
The interface options possible are:
|
|
|
|
- the MAC address
|
|
|
|
- the IP address bound to the interface
|
|
|
|
- the name of the script used to set up the binding
|
2007-01-10 15:20:46 +00:00
|
|
|
- the target device used
|
2007-01-10 10:08:06 +00:00
|
|
|
-->
|
|
|
|
<define name='interface-options'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name='target'>
|
|
|
|
<attribute name='dev'>
|
|
|
|
<ref name='deviceName'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='mac'>
|
|
|
|
<attribute name='address'>
|
|
|
|
<ref name='addrMAC'/>
|
2007-01-09 16:29:18 +00:00
|
|
|
</attribute>
|
2008-07-08 12:05:13 +00:00
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='ip'>
|
|
|
|
<attribute name='address'>
|
|
|
|
<ref name='addrIP'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='script'>
|
|
|
|
<attribute name='path'>
|
|
|
|
<ref name='filePath'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='model'>
|
|
|
|
<attribute name='type' />
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
2007-01-09 16:29:18 +00:00
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
2008-07-08 12:05:13 +00:00
|
|
|
An emulator description is just a path to the binary used for the task
|
2007-01-09 16:29:18 +00:00
|
|
|
-->
|
|
|
|
<define name='emulator'>
|
|
|
|
<element name='emulator'>
|
|
|
|
<ref name='absFilePath'/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
2007-01-10 10:08:06 +00:00
|
|
|
A graphic description, currently in Xen only 2 types are supported:
|
2008-12-11 11:44:30 +00:00
|
|
|
- sdl with optional display, xauth and fullscreen
|
2008-07-08 12:05:13 +00:00
|
|
|
- vnc with a required port and optional listen IP address, password
|
|
|
|
and keymap
|
2007-01-09 16:29:18 +00:00
|
|
|
-->
|
|
|
|
<define name='graphic'>
|
|
|
|
<element name='graphics'>
|
|
|
|
<choice>
|
2008-10-10 16:52:20 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>sdl</value>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name='display'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='xauth'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2008-12-11 11:44:30 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='fullscreen'>
|
|
|
|
<choice>
|
|
|
|
<value>yes</value>
|
|
|
|
<value>no</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2008-10-10 16:52:20 +00:00
|
|
|
</group>
|
2007-01-09 16:29:18 +00:00
|
|
|
<group>
|
|
|
|
<attribute name='type'>
|
|
|
|
<value>vnc</value>
|
|
|
|
</attribute>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='port'>
|
|
|
|
<ref name='PortNumber'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='autoport'>
|
|
|
|
<choice>
|
|
|
|
<value>yes</value>
|
|
|
|
<value>no</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2007-01-10 10:08:06 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='listen'>
|
|
|
|
<ref name='addrIP'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='passwd'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name='keymap'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
</group>
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
When a domain terminates multiple policies can be applied depending
|
|
|
|
on how it ended:
|
|
|
|
-->
|
|
|
|
<define name='termination'>
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name='on_reboot'>
|
|
|
|
<ref name='offOptions'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='on_poweroff'>
|
|
|
|
<ref name='offOptions'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='on_crash'>
|
|
|
|
<ref name='offOptions'/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Options when a domain terminates:
|
|
|
|
destroy: The domain is cleaned up
|
|
|
|
restart: A new domain is started in place of the old one
|
|
|
|
preserve: The domain will remain in memory until it is destroyed manually
|
|
|
|
rename-restart: a variant of the previous one but where the old domain is
|
|
|
|
renamed before being saved to allow a restart
|
|
|
|
-->
|
|
|
|
<define name='offOptions'>
|
|
|
|
<choice>
|
|
|
|
<value>destroy</value>
|
|
|
|
<value>restart</value>
|
|
|
|
<value>preserve</value>
|
|
|
|
<value>rename-restart</value>
|
|
|
|
</choice>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<!--
|
|
|
|
Specific setup for a qemu emulated character device. Note: this
|
|
|
|
definition doesn't fully specify the constraints on this node.
|
|
|
|
-->
|
|
|
|
<define name='qemucdev'>
|
|
|
|
<attribute name='type'>
|
|
|
|
<choice>
|
|
|
|
<value>dev</value>
|
|
|
|
<value>file</value>
|
|
|
|
<value>pipe</value>
|
|
|
|
<value>unix</value>
|
|
|
|
<value>tcp</value>
|
|
|
|
<value>udp</value>
|
|
|
|
<value>null</value>
|
|
|
|
<value>stdio</value>
|
|
|
|
<value>vc</value>
|
|
|
|
<value>pty</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<oneOrMore>
|
|
|
|
<element name='source'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='mode' />
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='path' />
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='host' />
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='service' />
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<attribute name='wiremode' />
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</oneOrMore>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='protocol'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='type' />
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name='target'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='port' />
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</define>
|
|
|
|
|
2007-01-09 16:29:18 +00:00
|
|
|
<!--
|
|
|
|
The description for a console
|
|
|
|
just a tty device
|
|
|
|
-->
|
|
|
|
<define name='console'>
|
|
|
|
<element name='console'>
|
2008-07-08 12:05:13 +00:00
|
|
|
<choice>
|
|
|
|
<group>
|
|
|
|
<optional>
|
|
|
|
<attribute name='tty'>
|
|
|
|
<ref name='devicePath'/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<empty/>
|
|
|
|
</group>
|
|
|
|
<ref name='qemucdev' />
|
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='sound'>
|
|
|
|
<element name='sound'>
|
|
|
|
<attribute name='model'>
|
|
|
|
<choice>
|
|
|
|
<value>sb16</value>
|
|
|
|
<value>es1370</value>
|
|
|
|
<value>pcspk</value>
|
|
|
|
</choice>
|
2007-01-09 16:29:18 +00:00
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='parallel'>
|
|
|
|
<element name='parallel'>
|
|
|
|
<ref name='qemucdev' />
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='serial'>
|
|
|
|
<element name='serial'>
|
|
|
|
<ref name='qemucdev' />
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='input'>
|
|
|
|
<element name='input'>
|
|
|
|
<attribute name='type'>
|
|
|
|
<choice>
|
|
|
|
<value>tablet</value>
|
|
|
|
<value>mouse</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<optional>
|
|
|
|
<attribute name='bus'>
|
|
|
|
<choice>
|
|
|
|
<value>ps2</value>
|
|
|
|
<value>usb</value>
|
|
|
|
<value>xen</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
2007-01-09 16:29:18 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2008-08-08 14:27:05 +00:00
|
|
|
<define name='hostdev'>
|
|
|
|
<element name='hostdev'>
|
|
|
|
<optional>
|
|
|
|
<attribute name='mode'>
|
|
|
|
<choice>
|
|
|
|
<value>subsystem</value>
|
|
|
|
<value>capabilities</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
<attribute name='type'>
|
|
|
|
<choice>
|
|
|
|
<value>usb</value>
|
|
|
|
<value>pci</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<group>
|
|
|
|
<element name='source'>
|
|
|
|
<choice>
|
|
|
|
<ref name="usbproduct"/>
|
|
|
|
<ref name="usbaddress"/>
|
2009-01-12 15:09:19 +00:00
|
|
|
<ref name="pciaddress"/>
|
2008-08-08 14:27:05 +00:00
|
|
|
</choice>
|
|
|
|
</element>
|
|
|
|
</group>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="usbproduct">
|
|
|
|
<element name="vendor">
|
|
|
|
<attribute name="id">
|
|
|
|
<ref name="usbId"/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
<element name="product">
|
|
|
|
<attribute name="id">
|
|
|
|
<ref name="usbId"/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name="usbaddress">
|
|
|
|
<element name="address">
|
|
|
|
<attribute name="bus">
|
|
|
|
<ref name="usbAddr"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="device">
|
|
|
|
<ref name="usbAddr"/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2009-01-12 15:09:19 +00:00
|
|
|
<define name="pciaddress">
|
|
|
|
<element name="address">
|
|
|
|
<optional>
|
|
|
|
<attribute name="domain">
|
|
|
|
<ref name="pciDomain"/>
|
|
|
|
</attribute>
|
|
|
|
</optional>
|
|
|
|
<attribute name="bus">
|
|
|
|
<ref name="pciBus"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="slot">
|
|
|
|
<ref name="pciSlot"/>
|
|
|
|
</attribute>
|
|
|
|
<attribute name="function">
|
|
|
|
<ref name="pciFunc"/>
|
|
|
|
</attribute>
|
|
|
|
</element>
|
|
|
|
</define>
|
2007-01-10 15:20:46 +00:00
|
|
|
<!--
|
2008-07-08 12:05:13 +00:00
|
|
|
Devices attached to a domain.
|
2007-01-10 15:20:46 +00:00
|
|
|
-->
|
2008-07-08 12:05:13 +00:00
|
|
|
<define name='devices'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<element name='devices'>
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='emulator'/>
|
2007-01-10 15:20:46 +00:00
|
|
|
</optional>
|
|
|
|
<zeroOrMore>
|
2008-07-08 12:05:13 +00:00
|
|
|
<choice>
|
|
|
|
<ref name='graphic'/>
|
|
|
|
<ref name='disk'/>
|
2008-08-01 13:31:37 +00:00
|
|
|
<ref name='filesystem'/>
|
2008-07-08 12:05:13 +00:00
|
|
|
<ref name='interface'/>
|
|
|
|
<ref name='console'/>
|
|
|
|
<ref name='sound'/>
|
|
|
|
<ref name='parallel'/>
|
|
|
|
<ref name='serial'/>
|
|
|
|
<ref name='input'/>
|
2008-08-08 14:27:05 +00:00
|
|
|
<ref name='hostdev'/>
|
2008-07-08 12:05:13 +00:00
|
|
|
</choice>
|
2007-01-10 15:20:46 +00:00
|
|
|
</zeroOrMore>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2007-01-09 16:29:18 +00:00
|
|
|
<!--
|
|
|
|
A set of optional features: PAE, APIC and ACPI support
|
|
|
|
-->
|
|
|
|
<define name='features'>
|
|
|
|
<optional>
|
|
|
|
<element name="features">
|
|
|
|
<interleave>
|
|
|
|
<optional>
|
|
|
|
<element name="pae">
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name="apic">
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
<optional>
|
|
|
|
<element name="acpi">
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</optional>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Type library
|
|
|
|
|
|
|
|
Our unsignedInt doesn't allow a leading '+' in its lexical form
|
|
|
|
A domain name shoul be made of ascii, numbers, _-+ and is non-empty
|
|
|
|
UUID currently allows only the 32 characters strict syntax
|
|
|
|
memoryKB request at least 4Mbytes though Xen will grow bigger if too low
|
|
|
|
-->
|
|
|
|
<define name='unsignedInt'>
|
|
|
|
<data type='unsignedInt'>
|
|
|
|
<param name="pattern">[0-9]+</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='countCPU'>
|
|
|
|
<data type='unsignedShort'>
|
|
|
|
<param name="pattern">[0-9]+</param>
|
|
|
|
<param name="minInclusive">1</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='PortNumber'>
|
2007-01-10 10:08:06 +00:00
|
|
|
<data type='short'>
|
|
|
|
<param name="minInclusive">-1</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='memoryKB'>
|
|
|
|
<data type='unsignedInt'>
|
|
|
|
<param name="pattern">[0-9]+</param>
|
|
|
|
<param name="minInclusive">4000</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='domainName'>
|
|
|
|
<data type='string'>
|
2008-07-25 06:37:20 +00:00
|
|
|
<param name="pattern">[A-Za-z0-9_\.\+\-&:/]+</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
2007-01-10 10:08:06 +00:00
|
|
|
<define name='genericName'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">[a-zA-Z0-9_\+\-]+</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2007-01-09 16:29:18 +00:00
|
|
|
<define name='UUID'>
|
2007-01-10 15:20:46 +00:00
|
|
|
<choice>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">[a-fA-F0-9]{32}</param>
|
|
|
|
</data>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">[a-fA-F0-9]{8}\-([a-fA-F0-9]{4}\-){3}[a-fA-F0-9]{12}</param>
|
|
|
|
</data>
|
|
|
|
</choice>
|
2007-01-09 16:29:18 +00:00
|
|
|
</define>
|
|
|
|
<define name='filePath'>
|
|
|
|
<data type='string'>
|
2008-07-25 06:37:20 +00:00
|
|
|
<param name="pattern">[a-zA-Z0-9_\.\+\-&/%]+</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='absFilePath'>
|
|
|
|
<data type='string'>
|
2008-07-25 06:37:20 +00:00
|
|
|
<param name="pattern">/[a-zA-Z0-9_\.\+\-&/%]+</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
2008-08-01 13:31:37 +00:00
|
|
|
<define name='absDirPath'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">/[a-zA-Z0-9_\.\+\-&/%]*</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2007-01-09 16:29:18 +00:00
|
|
|
<define name='devicePath'>
|
|
|
|
<data type='string'>
|
2008-07-25 06:37:20 +00:00
|
|
|
<param name="pattern">/[a-zA-Z0-9_\+\-/%]+</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='deviceName'>
|
|
|
|
<data type='string'>
|
2008-07-25 06:37:20 +00:00
|
|
|
<param name="pattern">[a-zA-Z0-9_\.\-:/]+</param>
|
2007-01-09 16:29:18 +00:00
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='addrMAC'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='addrIP'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">([0-2]?[0-9]?[0-9]\.){3}[0-2]?[0-9]?[0-9]</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2008-08-08 14:27:05 +00:00
|
|
|
<define name='usbId'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-9a-fA-F]{1,4}</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='usbAddr'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-9a-fA-F]{1,3}</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2009-01-12 15:09:19 +00:00
|
|
|
<define name='pciDomain'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-9a-fA-F]{1,4}</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='pciBus'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-9a-fA-F]{1,2}</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='pciSlot'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-1]?[0-9a-fA-F]</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
|
|
|
<define name='pciFunc'>
|
|
|
|
<data type='string'>
|
|
|
|
<param name="pattern">(0x)?[0-7]</param>
|
|
|
|
</data>
|
|
|
|
</define>
|
2007-01-09 16:29:18 +00:00
|
|
|
</grammar>
|