2015-09-11 00:13:47 +02:00
|
|
|
Reference: bnc#869024
|
|
|
|
Disable graphics on s390x
|
2017-08-09 21:02:00 +02:00
|
|
|
Index: virt-manager-1.4.2/virtinst/guest.py
|
2015-09-11 00:13:47 +02:00
|
|
|
===================================================================
|
2017-08-09 21:02:00 +02:00
|
|
|
--- virt-manager-1.4.2.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.4.2/virtinst/guest.py
|
2017-03-09 20:10:48 +01:00
|
|
|
@@ -124,7 +124,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
|
2017-03-09 20:10:48 +01:00
|
|
|
self.skip_default_rng = False
|
2015-09-11 00:13:47 +02:00
|
|
|
self.x86_cpu_default = self.cpu.SPECIAL_MODE_HOST_MODEL_ONLY
|
|
|
|
|
2017-08-09 21:02:00 +02:00
|
|
|
@@ -686,7 +689,7 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
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
|
2017-08-09 21:02:00 +02:00
|
|
|
@@ -741,6 +744,8 @@ class Guest(XMLBuilder):
|
2015-11-26 00:27:12 +01:00
|
|
|
dev.target_type = "virtio"
|
|
|
|
dev.target_name = dev.CHANNEL_NAME_QEMUGA
|
|
|
|
self.add_device(dev)
|
|
|
|
+ elif self.os.is_s390x():
|
|
|
|
+ dev.target_type = "sclp"
|
|
|
|
|
|
|
|
def add_default_graphics(self):
|
|
|
|
if self.skip_default_graphics:
|
2017-08-09 21:02:00 +02:00
|
|
|
@@ -749,7 +754,7 @@ class Guest(XMLBuilder):
|
2015-09-11 00:13:47 +02:00
|
|
|
return
|
2017-08-09 21:02:00 +02:00
|
|
|
if self.os.is_container() and not self.conn.is_vz():
|
2015-09-11 00:13:47 +02:00
|
|
|
return
|
2017-08-09 21:02:00 +02:00
|
|
|
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le"]:
|
|
|
|
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "s390x"]:
|
2015-09-11 00:13:47 +02:00
|
|
|
return
|
|
|
|
self.add_device(VirtualGraphics(self.conn))
|
|
|
|
|
2017-08-09 21:02:00 +02:00
|
|
|
@@ -1084,7 +1089,7 @@ class Guest(XMLBuilder):
|
|
|
|
if not os_support:
|
|
|
|
return False
|
2015-09-11 00:13:47 +02:00
|
|
|
|
|
|
|
- if self.os.is_x86():
|
|
|
|
+ if self.os.is_x86() or self.os.is_s390x():
|
|
|
|
return True
|
|
|
|
|
|
|
|
if (self.os.is_arm_vexpress() and
|