[virt-tools-list] [PATCH] virt-manager : add support for architecture type "s390x"
Martin Kletzander
mkletzan at redhat.com
Thu Jul 9 09:40:22 UTC 2015
On Wed, Jul 08, 2015 at 03:45:14AM -0400, Kevin Zhao wrote:
>For architecture "s390x",the disk and the network device are based
>on "virtio" bus.The cdrom is based on "scsi".So set the default
>cdrom bus as "scsi",the default bus as "virtio".Also the default
>machine type is set to "s390-ccw-virtio" as it is the only supported
>in "s390x".
>
>Signed-off-by: Kevin Zhao <kevinzs at linux.vnet.ibm.com>
>---
> virtManager/create.py | 4 ++--
> virtinst/capabilities.py | 4 ++++
> virtinst/devicedisk.py | 3 +++
> virtinst/guest.py | 2 ++
> virtinst/osxml.py | 3 +++
> 5 files changed, 14 insertions(+), 2 deletions(-)
>
>diff --git a/virtManager/create.py b/virtManager/create.py
>index 8401a7a..013a089 100644
>--- a/virtManager/create.py
>+++ b/virtManager/create.py
>@@ -409,7 +409,7 @@ class vmmCreate(vmmGObjectUI):
> can_remote_url = self.conn.get_backend().support_remote_url_install()
>
> installable_arch = (self.capsinfo.arch in
>- ["i686", "x86_64", "ppc64", "ppc64le", "ia64"])
>+ ["i686", "x86_64", "ppc64", "ppc64le", "ia64","s390x"])
>
> if self.capsinfo.arch == "aarch64":
> try:
>@@ -676,7 +676,7 @@ class vmmCreate(vmmGObjectUI):
> archs.remove("i686")
> archs.sort()
>
>- prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le"]
>+ prios = ["x86_64", "i686", "aarch64", "armv7l", "ppc64", "ppc64le","s390x"]
Also space after comma would be nicer to read even though not pointed
out by pylint/pep8 ;)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20150709/4ab2095a/attachment.sig>
More information about the virt-tools-list
mailing list