virt-manager/virtinst-ppc64le.patch
Charles Arnold 47ffb48dd8 - Update to virt-manager 1.1.0
virt-manager-1.1.0.tar.bz2
  * Switch to libosinfo as OS metadata database (Giuseppe Scrivano)
  * Use libosinfo for OS detection from CDROM media labels (Giuseppe Scrivano)
  * Use libosinfo for improved OS defaults, like recommended disk size (Giuseppe Scrivano)
  * virt-image tool has been removed, as previously announced
  * Enable Hyper-V enlightenments for Windows VMs
  * Revert virtio-console default, back to plain serial console
  * Experimental q35 option in new VM ‘customize’ dialog
  * UI for virtual network QoS settings (Giuseppe Scrivano)
  * virt-install: –disk discard= support (Jim Minter)
  * addhardware: Add spiceport UI (Marc-André Lureau)
  * virt-install: –events on_poweroff etc. support (Chen Hanxiao)
  * cli –network portgroup= support and UI support
  * cli –boot initargs= and UI support
  * addhardware: allow setting controller model (Chen Hanxiao)
  * virt-install: support setting hugepage options (Chen Hanxiao)
- Drop upstream patches and old tarball
  virt-manager-1.0.1.tar.bz2
  5332ee4d-enable-media-detection-for-ISO-images.patch
  53341e7e-hide-hardware-removal-for-non-devices.patch
  53342f31-set-right-ip-address-for-ipv6.patch
  53375bad-raise-value-error-when-no-ipaddr-set.patch
  53388de2-show-port-number-for-active-autoport-VM.patch
  53397ae0-check-ip-address-format.patch
  53399b45-hook-into-domain-balloon-event.patch
  533d708d-fix-showing-vcpus-values.patch
  533d7602-fix-changing-graphics-type.patch
  533d7be7-clarify-iscsi-IQN-fields.patch
  5345682c-addstorage-remove-whitespace-for-storage-path.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=207
2014-10-29 17:03:15 +00:00

72 lines
2.9 KiB
Diff

Index: virt-manager-1.1.0/virtinst/guest.py
===================================================================
--- virt-manager-1.1.0.orig/virtinst/guest.py
+++ virt-manager-1.1.0/virtinst/guest.py
@@ -633,7 +633,7 @@ class Guest(XMLBuilder):
return
if self.os.is_container():
return
- if self.os.arch not in ["x86_64", "i686", "ppc64", "ia64", "s390x"]:
+ if self.os.arch not in ["x86_64", "i686", "ppc64", "ppc64le", "ia64", "s390x"]:
return
self.add_device(virtinst.VirtualGraphics(self.conn))
@@ -771,6 +771,8 @@ class Guest(XMLBuilder):
if self.conn.is_qemu():
if self.os.arch == "s390x":
preferred_emulator = "/usr/bin/qemu-system-s390x"
+ elif self.os.arch == "ppc64" or self.os.arch == "ppc64le":
+ preferred_emulator = "/usr/bin/qemu-system-ppc64"
else:
preferred_emulator = "/usr/bin/qemu-system-x86_64"
else:
@@ -877,7 +879,7 @@ class Guest(XMLBuilder):
if not self._lookup_osdict_key(key, False):
return False
- if self.os.is_x86() or self.os.is_s390x():
+ if self.os.is_x86() or self.os.is_s390x() or self.os.is_ppc64():
return True
if (self.os.is_arm_vexpress() and
self.os.dtb and
@@ -928,6 +930,8 @@ class Guest(XMLBuilder):
net_model = None
elif self._can_virtio("virtionet"):
net_model = "virtio"
+ elif self.os.is_pseries():
+ net_model = "spapr-vlan"
else:
net_model = self._lookup_osdict_key("netmodel", None)
Index: virt-manager-1.1.0/virtinst/osxml.py
===================================================================
--- virt-manager-1.1.0.orig/virtinst/osxml.py
+++ virt-manager-1.1.0/virtinst/osxml.py
@@ -60,6 +60,8 @@ class OSXML(XMLBuilder):
return self.is_ppc64 and self.machine == "pseries"
def is_s390x(self):
return self.arch == "s390x"
+ def is_ppc64(self):
+ return self.arch == "ppc64" or self.arch == "ppc64le"
_XML_ROOT_NAME = "os"
_XML_PROP_ORDER = ["arch", "os_type", "loader",
Index: virt-manager-1.1.0/virtinst/urlfetcher.py
===================================================================
--- virt-manager-1.1.0.orig/virtinst/urlfetcher.py
+++ virt-manager-1.1.0/virtinst/urlfetcher.py
@@ -944,10 +944,11 @@ class SuseDistro(Distro):
oldkern += "64"
oldinit += "64"
- if self.arch == "s390x":
+ if self.arch == "s390x" or \
+ self.arch == "ppc64" or self.arch == "ppc64le":
self._hvm_kernel_paths = [ ("boot/%s/linux" % self.arch,
"boot/%s/initrd" % self.arch) ]
- # No Xen on s390x
+ # No Xen on s390x and ppc
self._xen_kernel_paths = []
else:
# Tested with Opensuse >= 10.2, 11, and sles 10