Add the console target "sclp" for s390x

Add console target "sclp" for s390x ,since the newest Distro guests has
supported the console target, solve some console issues in s390x.Also
modified the test xml cover this change.

crobinso: fix the test suite output
This commit is contained in:
Kevin Zhao 2015-11-13 09:48:13 +08:00 committed by Cole Robinson
parent 908a00cc73
commit 35792f7dd6
3 changed files with 8 additions and 2 deletions

View File

@ -30,7 +30,9 @@
<source bridge="eth0"/>
<mac address="00:11:22:33:44:55"/>
</interface>
<console type="pty"/>
<console type="pty">
<target type="sclp"/>
</console>
<watchdog model="diag288" action="reset"/>
</devices>
</domain>

View File

@ -30,6 +30,8 @@
<source bridge="eth0"/>
<mac address="00:11:22:33:44:55"/>
</interface>
<console type="pty"/>
<console type="pty">
<target type="sclp"/>
</console>
</devices>
</domain>

View File

@ -628,6 +628,8 @@ class Guest(XMLBuilder):
dev = VirtualConsoleDevice(self.conn)
dev.type = dev.TYPE_PTY
if self.os.is_s390x():
dev.target_type = "sclp"
self.add_device(dev)
def add_default_video_device(self):