mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Add timer element to domain schema
timers are sub-elements of clocks. A clock can have zero or more instances of timer. Within the timer, only the name attribute is required; all other attributes are optional. A simpler representation of a timer element is: <timer name='platform|pit|rtc|hpet|tsc' wallclock='host|guest' tickpolicy='delay|catchup|merge|discard' frequency='123' mode='auto|native|emulate|paravirt' present='yes|no'/> frequency is a ulong. All other attributes are simple enums.
This commit is contained in:
parent
92a9e5df63
commit
188af565dd
@ -295,6 +295,9 @@
|
|||||||
</interleave>
|
</interleave>
|
||||||
</define>
|
</define>
|
||||||
<define name="clock">
|
<define name="clock">
|
||||||
|
<zeroOrMore>
|
||||||
|
<ref name="timer"/>
|
||||||
|
</zeroOrMore>
|
||||||
<optional>
|
<optional>
|
||||||
<element name="clock">
|
<element name="clock">
|
||||||
<choice>
|
<choice>
|
||||||
@ -329,7 +332,62 @@
|
|||||||
</element>
|
</element>
|
||||||
</optional>
|
</optional>
|
||||||
</define>
|
</define>
|
||||||
<!--
|
<define name="timer">
|
||||||
|
<element name="timer">
|
||||||
|
<attribute name="name">
|
||||||
|
<choice>
|
||||||
|
<value>platform</value>
|
||||||
|
<value>pit</value>
|
||||||
|
<value>rtc</value>
|
||||||
|
<value>hpet</value>
|
||||||
|
<value>tsc</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
<optional>
|
||||||
|
<attribute name="wallclock">
|
||||||
|
<choice>
|
||||||
|
<value>host</value>
|
||||||
|
<value>guest</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="tickpolicy">
|
||||||
|
<choice>
|
||||||
|
<value>delay</value>
|
||||||
|
<value>catchup</value>
|
||||||
|
<value>merge</value>
|
||||||
|
<value>discard</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="frequency">
|
||||||
|
<ref name="unsignedInt"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="mode">
|
||||||
|
<choice>
|
||||||
|
<value>auto</value>
|
||||||
|
<value>native</value>
|
||||||
|
<value>emulate</value>
|
||||||
|
<value>paravirt</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<optional>
|
||||||
|
<attribute name="present">
|
||||||
|
<choice>
|
||||||
|
<value>yes</value>
|
||||||
|
<value>no</value>
|
||||||
|
</choice>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
|
<empty/>
|
||||||
|
</element>
|
||||||
|
</define>
|
||||||
|
<!--
|
||||||
A bootloader may be used to extract the OS information instead of
|
A bootloader may be used to extract the OS information instead of
|
||||||
defining the OS parameter in the instance. It points just to the
|
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.
|
binary or script used to extract the data from the first disk device.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user