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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux