domain conf: Track <console> target type

All <console> devices now export a <target> type attribute. QEMU defaults
to 'serial', UML defaults to 'uml, xen can be either 'serial' or 'xen'
depending on fullvirt. Understandably there is lots of test fallout.

This will be used to differentiate between a serial vs. virtio console for
QEMU.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson
2010-07-22 13:56:21 -04:00
parent 6488ea2c5c
commit 6b24755235
72 changed files with 151 additions and 80 deletions

View File

@@ -42,7 +42,7 @@
</serial>
<console type='file'>
<source path='/tmp/serial.log'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -40,7 +40,7 @@
<target port='0'/>
</serial>
<console type='null'>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -42,7 +42,7 @@
</serial>
<console type='pipe'>
<source path='/tmp/serial.pipe'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -40,7 +40,7 @@
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -40,7 +40,7 @@
<target port='0'/>
</serial>
<console type='stdio'>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -44,7 +44,7 @@
<console type='tcp'>
<source mode='bind' host='127.0.0.1' service='9999'/>
<protocol type='telnet'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -44,7 +44,7 @@
<console type='tcp'>
<source mode='connect' host='127.0.0.1' service='7777'/>
<protocol type='raw'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -44,7 +44,7 @@
<console type='udp'>
<source mode='bind' host='0.0.0.0' service='99998'/>
<source mode='connect' host='127.0.0.1' service='9999'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -42,7 +42,7 @@
</serial>
<console type='unix'>
<source mode='bind' path='/tmp/serial.sock'/>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -39,7 +39,7 @@
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>

View File

@@ -25,7 +25,7 @@
<model type='e1000'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -26,7 +26,7 @@
<model type='e1000'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -24,7 +24,7 @@
<script path='vif-bridge'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='5925' autoport='no' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -24,7 +24,7 @@
<script path='vif-bridge'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -24,7 +24,7 @@
<script path='vif-bridge'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='5925' autoport='no' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -24,7 +24,7 @@
<script path='vif-bridge'/>
</interface>
<console type='pty'>
<target port='0'/>
<target type='xen' port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' passwd='123poi'/>

View File

@@ -39,7 +39,7 @@
<target port='0'/>
</serial>
<console type='pty'>
<target port='0'/>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>