aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-11-18 11:25:20 +0100
committerDaniel Veillard <veillard@redhat.com>2009-11-20 15:48:19 +0100
commit2060a0a43e1f1152040e29944d6b1a7bee0ce152 (patch)
tree9929927ed14a8929ef5ef1b86d39dfc21db40246
parentqemu-kvm needs -enable-kvm flag for VT optimization (diff)
downloadlibvirt-2060a0a43e1f1152040e29944d6b1a7bee0ce152.tar.gz
libvirt-2060a0a43e1f1152040e29944d6b1a7bee0ce152.tar.bz2
libvirt-2060a0a43e1f1152040e29944d6b1a7bee0ce152.zip
512069 fix domain XML schemas for backward compatibility
For backward compatibility we used to add the tty path as a tty attribute on console of type pty, duplicating the value now found in source/@path, but the Relax-NG grammar wasn't extended for this <console type='pty' tty='/dev/pts/8'> <source path='/dev/pts/8'/> <target port='0'/> </console> * docs/schemas/domain.rng: allow an optional tty attribute containing a devicePath
-rw-r--r--docs/schemas/domain.rng5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index 1bf44fde0..e726801fe 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -931,6 +931,11 @@
-->
<define name="qemucdev">
<ref name="qemucdevSrcType"/>
+ <optional>
+ <attribute name="tty">
+ <ref name="devicePath"/>
+ </attribute>
+ </optional>
<interleave>
<ref name="qemucdevSrcDef"/>
<optional>