virt-manager/virtman-default-to-xen-pv.patch
Charles Arnold c7dfc18daa - Add upstream s390x support patch (bnc#869024)
8dbe96fc-add-s390x-arch-support.patch
  virtman-s390x-dont-add-graphics-support.patch
  Drop virtman-add-s390x-arch-support.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=259
2015-09-10 19:56:08 +00:00

19 lines
834 B
Diff

Enhancement to default to PV instead of HVM on Xen host.
Index: virt-manager-1.2.1/virtManager/create.py
===================================================================
--- virt-manager-1.2.1.orig/virtManager/create.py
+++ virt-manager-1.2.1/virtManager/create.py
@@ -878,7 +878,12 @@ class vmmCreate(vmmGObjectUI):
if gtype is None:
# If none specified, prefer HVM so install options aren't limited
# with a default PV choice.
+ # If xen connection, favor PV installation
+ conn_is_xen = self.conn.is_xen()
for g in self.conn.caps.guests:
+ if conn_is_xen and g.os_type == "xen":
+ gtype = "xen"
+ break
if g.os_type == "hvm":
gtype = "hvm"
break