virtinst: set vmport off by default when has_spice()

Spice is better off without vmport enabled, to be able to switch between
absolute and relative mouse mode easily.
Message-Id: <1428012248-5767-5-git-send-email-marcandre.lureau@gmail.com>
This commit is contained in:
Marc-André Lureau 2015-04-03 00:04:07 +02:00 committed by Cole Robinson
parent ede876e792
commit ddfca74e54
1 changed files with 5 additions and 0 deletions

View File

@ -838,6 +838,11 @@ class Guest(XMLBuilder):
if self.features.pae == "default":
self.features.pae = self.conn.caps.supports_pae()
if (self.features.vmport == "default" and
self.has_spice() and
self.conn.check_support(self.conn.SUPPORT_CONN_VMPORT)):
self.features.vmport = False
if (self._os_object.is_windows() and
self._hv_supported() and
self.conn.check_support(self.conn.SUPPORT_CONN_HYPERV_VAPIC)):