2015-09-11 00:13:47 +02:00
|
|
|
Reference: bnc#869024
|
|
|
|
Disable graphics on s390x
|
|
|
|
Index: virt-manager-1.2.1/virtinst/guest.py
|
|
|
|
===================================================================
|
|
|
|
--- virt-manager-1.2.1.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.2.1/virtinst/guest.py
|
2015-09-11 00:16:05 +02:00
|
|
|
@@ -123,7 +123,10 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
self.skip_default_channel = False
|
|
|
|
self.skip_default_sound = False
|
|
|
|
self.skip_default_usbredir = False
|
|
|
|
- self.skip_default_graphics = False
|
|
|
|
+ if self.os.is_s390x():
|
|
|
|
+ self.skip_default_graphics = True
|
|
|
|
+ else:
|
|
|
|
+ self.skip_default_graphics = False
|
|
|
|
self.x86_cpu_default = self.cpu.SPECIAL_MODE_HOST_MODEL_ONLY
|
|
|
|
|
|
|
|
self.__os_object = None
|
2015-11-17 17:10:20 +01:00
|
|
|
@@ -623,11 +626,13 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
self.conn.check_support(
|
|
|
|
self.conn.SUPPORT_CONN_VIRTIO_CONSOLE)):
|
|
|
|
dev.target_type = "virtio"
|
|
|
|
+ elif self.os.is_s390x():
|
|
|
|
+ dev.target_type = "sclp"
|
|
|
|
|
|
|
|
self.add_device(dev)
|
|
|
|
|
|
|
|
def add_default_video_device(self):
|
|
|
|
- if self.os.is_container():
|
|
|
|
+ if self.os.is_container() or self.os.is_s390x():
|
|
|
|
return
|
|
|
|
if self.get_devices("video"):
|
|
|
|
return
|
2015-11-17 17:10:20 +01:00
|
|
|
@@ -672,7 +677,7 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
return
|
|
|
|
if self.os.is_container():
|
|
|
|
return
|
|
|
|
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64"]:
|
|
|
|
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64", "s390x"]:
|
|
|
|
return
|
|
|
|
self.add_device(VirtualGraphics(self.conn))
|
|
|
|
|
2015-11-17 17:10:20 +01:00
|
|
|
@@ -1000,7 +1005,7 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
if self._hv_only_supports_virtio():
|
|
|
|
return True
|
|
|
|
|
|
|
|
- if self.os.is_x86():
|
|
|
|
+ if self.os.is_x86() or self.os.is_s390x():
|
|
|
|
return True
|
|
|
|
|
|
|
|
if (self.os.is_arm_vexpress() and
|