cli: s390x+graphics specified, use video=virtio (bz #1654994)

s390x doesn't support any of the PCI graphics cards

https://bugzilla.redhat.com/show_bug.cgi?id=1654994
This commit is contained in:
Cole Robinson 2018-12-13 16:39:43 -05:00
parent 0889c7c7e4
commit b91393e6c3
3 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,10 @@
<console type="pty"> <console type="pty">
<target type="sclp"/> <target type="sclp"/>
</console> </console>
<graphics type="vnc" port="-1"/>
<video>
<model type="virtio"/>
</video>
<watchdog model="diag288" action="reset"/> <watchdog model="diag288" action="reset"/>
<panic model="s390"/> <panic model="s390"/>
</devices> </devices>

View File

@ -720,7 +720,7 @@ c.add_compare("--connect %(URI-KVM-PPC64LE)s --import --disk %(EXISTIMG1)s --os-
# s390x tests # s390x tests
c.add_compare("--arch s390x --machine s390-ccw-virtio --connect %(URI-KVM-S390X)s --boot kernel=/kernel.img,initrd=/initrd.img --disk %(EXISTIMG1)s --disk %(EXISTIMG3)s,device=cdrom --os-variant fedora21", "s390x-cdrom", skip_check=OLD_OSINFO) c.add_compare("--arch s390x --machine s390-ccw-virtio --connect %(URI-KVM-S390X)s --boot kernel=/kernel.img,initrd=/initrd.img --disk %(EXISTIMG1)s --disk %(EXISTIMG3)s,device=cdrom --os-variant fedora21", "s390x-cdrom", skip_check=OLD_OSINFO)
c.add_compare("--arch s390x --machine s390-ccw-virtio --connect " + utils.URIs.kvm_s390x_KVMIBM + " --boot kernel=/kernel.img,initrd=/initrd.img --disk %(EXISTIMG1)s --disk %(EXISTIMG3)s,device=cdrom --os-variant fedora21 --watchdog diag288,action=reset --panic default", "s390x-cdrom-KVMIBM") c.add_compare("--arch s390x --machine s390-ccw-virtio --connect " + utils.URIs.kvm_s390x_KVMIBM + " --boot kernel=/kernel.img,initrd=/initrd.img --disk %(EXISTIMG1)s --disk %(EXISTIMG3)s,device=cdrom --os-variant fedora21 --watchdog diag288,action=reset --panic default --graphics vnc", "s390x-cdrom-KVMIBM")
# qemu:///session tests # qemu:///session tests
c.add_compare("--connect " + utils.URIs.kvm_session + " --disk size=8 --os-variant fedora21 --cdrom %(EXISTIMG1)s", "kvm-session-defaults", skip_check=OLD_OSINFO) c.add_compare("--connect " + utils.URIs.kvm_session + " --disk size=8 --os-variant fedora21 --cdrom %(EXISTIMG1)s", "kvm-session-defaults", skip_check=OLD_OSINFO)

View File

@ -46,6 +46,8 @@ class DeviceVideo(Device):
return "vga" return "vga"
if guest.os.is_arm_machvirt(): if guest.os.is_arm_machvirt():
return "virtio" return "virtio"
if guest.conn.is_qemu() and guest.os.is_s390x():
return "virtio"
if guest.has_spice() and guest.os.is_x86(): if guest.has_spice() and guest.os.is_x86():
if guest.has_gl(): if guest.has_gl():
return "virtio" return "virtio"