49 lines
2.0 KiB
Diff
49 lines
2.0 KiB
Diff
|
Index: virt-manager-1.0.1/virtManager/create.py
|
||
|
===================================================================
|
||
|
--- virt-manager-1.0.1.orig/virtManager/create.py
|
||
|
+++ virt-manager-1.0.1/virtManager/create.py
|
||
|
@@ -415,7 +415,7 @@ class vmmCreate(vmmGObjectUI):
|
||
|
can_remote_url = self.conn.get_backend().support_remote_url_install()
|
||
|
|
||
|
installable_arch = (self.capsguest.arch in
|
||
|
- ["i686", "x86_64", "ppc64", "ia64"])
|
||
|
+ ["i686", "x86_64", "ppc64", "ia64", "s390x"])
|
||
|
|
||
|
# Install Options
|
||
|
method_tree = self.widget("method-tree")
|
||
|
@@ -677,7 +677,7 @@ class vmmCreate(vmmGObjectUI):
|
||
|
archs.remove("i686")
|
||
|
archs.sort()
|
||
|
|
||
|
- prios = ["x86_64", "i686", "armv7l", "ppc64"]
|
||
|
+ prios = ["x86_64", "i686", "armv7l", "ppc64", "s390x"]
|
||
|
if self.conn.caps.host.cpu.arch not in prios:
|
||
|
prios = []
|
||
|
else:
|
||
|
Index: virt-manager-1.0.1/virtinst/osxml.py
|
||
|
===================================================================
|
||
|
--- virt-manager-1.0.1.orig/virtinst/osxml.py
|
||
|
+++ virt-manager-1.0.1/virtinst/osxml.py
|
||
|
@@ -53,6 +53,8 @@ class OSXML(XMLBuilder):
|
||
|
return self.arch == "ppc64"
|
||
|
def is_pseries(self):
|
||
|
return self.is_ppc64 and self.machine == "pseries"
|
||
|
+ def is_s390x(self):
|
||
|
+ return self.arch == "s390x"
|
||
|
|
||
|
_XML_ROOT_NAME = "os"
|
||
|
_XML_PROP_ORDER = ["arch", "os_type", "loader",
|
||
|
Index: virt-manager-1.0.1/virtinst/guest.py
|
||
|
===================================================================
|
||
|
--- virt-manager-1.0.1.orig/virtinst/guest.py
|
||
|
+++ virt-manager-1.0.1/virtinst/guest.py
|
||
|
@@ -598,7 +598,7 @@ class Guest(XMLBuilder):
|
||
|
return
|
||
|
if self.os.is_container():
|
||
|
return
|
||
|
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ia64"]:
|
||
|
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ia64", "s390x"]:
|
||
|
return
|
||
|
self.add_device(virtinst.VirtualGraphics(self.conn))
|
||
|
|