[virt-tools-list] [PATCH virt-manager 4/5] virtinst: set vmport off by default when has_spice()

Marc-André Lureau marcandre.lureau at gmail.com
Thu Apr 2 22:04:07 UTC 2015


Spice is better off without vmport enabled, to be able to switch between
absolute and relative mouse mode easily.
---
 virtinst/guest.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/virtinst/guest.py b/virtinst/guest.py
index 6f42775..9eb53b5 100644
--- a/virtinst/guest.py
+++ b/virtinst/guest.py
@@ -849,6 +849,12 @@ class Guest(XMLBuilder):
             if self.features.hyperv_spinlocks_retries is None:
                 self.features.hyperv_spinlocks_retries = 8191
 
+        if (self.features.vmport == "default" and
+            self.has_spice() and
+            self.conn.check_support(self.conn.SUPPORT_CONN_VMPORT)):
+            self.features.vmport = False
+
+
     def _add_implied_controllers(self):
         has_spapr_scsi = False
         has_virtio_scsi = False
-- 
2.1.0




More information about the virt-tools-list mailing list