File virtman-default-to-xen-pv.patch of Package virt-manager.7890

Enhancement to default to PV instead of HVM on Xen host.
Index: virt-manager-1.5.0/virtManager/create.py
===================================================================
--- virt-manager-1.5.0.orig/virtManager/create.py
+++ virt-manager-1.5.0/virtManager/create.py
@@ -759,7 +759,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
openSUSE Build Service is sponsored by