2015-05-04 22:15:01 +02:00
|
|
|
Reference: bnc#869024
|
|
|
|
Add s390x support
|
2015-06-08 14:36:45 +02:00
|
|
|
Index: virt-manager-1.2.1/virtManager/create.py
|
2014-04-04 03:55:04 +02:00
|
|
|
===================================================================
|
2015-06-08 14:36:45 +02:00
|
|
|
--- virt-manager-1.2.1.orig/virtManager/create.py
|
|
|
|
+++ virt-manager-1.2.1/virtManager/create.py
|
2015-05-04 22:15:01 +02:00
|
|
|
@@ -417,7 +417,7 @@ class vmmCreate(vmmGObjectUI):
|
2014-04-04 03:55:04 +02:00
|
|
|
can_remote_url = self.conn.get_backend().support_remote_url_install()
|
|
|
|
|
2015-05-04 22:15:01 +02:00
|
|
|
installable_arch = (self.capsinfo.arch in
|
|
|
|
- ["i686", "x86_64", "ppc64", "ppc64le", "ia64"])
|
|
|
|
+ ["i686", "x86_64", "ppc64", "ppc64le", "ia64", "s390x"])
|
2014-04-04 03:55:04 +02:00
|
|
|
|
2015-05-04 22:15:01 +02:00
|
|
|
if self.capsinfo.arch == "aarch64":
|
|
|
|
try:
|
|
|
|
@@ -684,7 +684,7 @@ class vmmCreate(vmmGObjectUI):
|
2014-04-04 03:55:04 +02:00
|
|
|
archs.remove("i686")
|
|
|
|
archs.sort()
|
|
|
|
|
2015-05-04 22:15:01 +02:00
|
|
|
- prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le"]
|
|
|
|
+ prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le", "s390x"]
|
2014-04-04 03:55:04 +02:00
|
|
|
if self.conn.caps.host.cpu.arch not in prios:
|
|
|
|
prios = []
|
|
|
|
else:
|
2015-06-08 14:36:45 +02:00
|
|
|
Index: virt-manager-1.2.1/virtinst/osxml.py
|
2014-04-04 03:55:04 +02:00
|
|
|
===================================================================
|
2015-06-08 14:36:45 +02:00
|
|
|
--- virt-manager-1.2.1.orig/virtinst/osxml.py
|
|
|
|
+++ virt-manager-1.2.1/virtinst/osxml.py
|
2015-05-04 22:15:01 +02:00
|
|
|
@@ -70,6 +70,8 @@ class OSXML(XMLBuilder):
|
|
|
|
return self.arch == "ppc64" or self.arch == "ppc64le"
|
2014-04-04 03:55:04 +02:00
|
|
|
def is_pseries(self):
|
2015-05-04 22:15:01 +02:00
|
|
|
return self.is_ppc64() and self.machine == "pseries"
|
2014-04-04 03:55:04 +02:00
|
|
|
+ def is_s390x(self):
|
|
|
|
+ return self.arch == "s390x"
|
|
|
|
|
|
|
|
_XML_ROOT_NAME = "os"
|
2015-05-04 22:15:01 +02:00
|
|
|
_XML_PROP_ORDER = ["arch", "os_type", "loader", "loader_ro", "loader_type",
|
2015-06-08 14:36:45 +02:00
|
|
|
Index: virt-manager-1.2.1/virtinst/guest.py
|
2014-04-04 03:55:04 +02:00
|
|
|
===================================================================
|
2015-06-08 14:36:45 +02:00
|
|
|
--- virt-manager-1.2.1.orig/virtinst/guest.py
|
|
|
|
+++ virt-manager-1.2.1/virtinst/guest.py
|
|
|
|
@@ -120,7 +120,10 @@ class Guest(XMLBuilder):
|
2014-07-18 01:22:14 +02:00
|
|
|
self.skip_default_channel = False
|
|
|
|
self.skip_default_sound = False
|
|
|
|
self.skip_default_usbredir = False
|
|
|
|
- self.skip_default_graphics = False
|
2014-07-24 21:44:55 +02:00
|
|
|
+ if self.os.is_s390x():
|
2014-07-18 01:22:14 +02:00
|
|
|
+ self.skip_default_graphics = True
|
|
|
|
+ else:
|
|
|
|
+ self.skip_default_graphics = False
|
|
|
|
self.x86_cpu_default = self.cpu.SPECIAL_MODE_HOST_MODEL_ONLY
|
|
|
|
|
2015-05-04 22:15:01 +02:00
|
|
|
self.__os_object = None
|
2015-06-08 14:36:45 +02:00
|
|
|
@@ -605,11 +608,13 @@ class Guest(XMLBuilder):
|
2014-07-24 21:44:55 +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"
|
|
|
|
|
2014-07-18 01:22:14 +02:00
|
|
|
self.add_device(dev)
|
|
|
|
|
|
|
|
def add_default_video_device(self):
|
|
|
|
- if self.os.is_container():
|
2014-07-24 21:44:55 +02:00
|
|
|
+ if self.os.is_container() or self.os.is_s390x():
|
2014-07-18 01:22:14 +02:00
|
|
|
return
|
|
|
|
if self.get_devices("video"):
|
|
|
|
return
|
2015-06-08 14:36:45 +02:00
|
|
|
@@ -654,7 +659,7 @@ class Guest(XMLBuilder):
|
2014-04-04 03:55:04 +02:00
|
|
|
return
|
|
|
|
if self.os.is_container():
|
|
|
|
return
|
2015-05-04 22:15:01 +02:00
|
|
|
- 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"]:
|
2014-04-04 03:55:04 +02:00
|
|
|
return
|
2015-05-04 22:15:01 +02:00
|
|
|
self.add_device(VirtualGraphics(self.conn))
|
2014-04-04 03:55:04 +02:00
|
|
|
|
2015-06-08 14:36:45 +02:00
|
|
|
@@ -956,7 +961,7 @@ class Guest(XMLBuilder):
|
2015-05-04 22:15:01 +02:00
|
|
|
if self._hv_only_supports_virtio():
|
|
|
|
return True
|
2014-07-18 01:22:14 +02:00
|
|
|
|
|
|
|
- if self.os.is_x86():
|
2014-07-24 21:44:55 +02:00
|
|
|
+ if self.os.is_x86() or self.os.is_s390x():
|
2014-07-18 01:22:14 +02:00
|
|
|
return True
|
2015-05-04 22:15:01 +02:00
|
|
|
|
2014-07-18 01:22:14 +02:00
|
|
|
if (self.os.is_arm_vexpress() and
|