Skip to content
Snippets Groups Projects
Commit a900a30c authored by Guido Trotter's avatar Guido Trotter
Browse files

kvm: always pass -usb


This will be the default anyway and it was a mistake to pass it only if
the mouse was specified.

Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent 2c368f28
No related branches found
No related tags found
No related merge requests found
...@@ -1172,8 +1172,9 @@ class KVMHypervisor(hv_base.BaseHypervisor): ...@@ -1172,8 +1172,9 @@ class KVMHypervisor(hv_base.BaseHypervisor):
spice_bind = hvp[constants.HV_KVM_SPICE_BIND] spice_bind = hvp[constants.HV_KVM_SPICE_BIND]
spice_ip_version = None spice_ip_version = None
kvm_cmd.extend(["-usb"])
if mouse_type: if mouse_type:
kvm_cmd.extend(["-usb"])
kvm_cmd.extend(["-usbdevice", mouse_type]) kvm_cmd.extend(["-usbdevice", mouse_type])
elif vnc_bind_address: elif vnc_bind_address:
kvm_cmd.extend(["-usbdevice", constants.HT_MOUSE_TABLET]) kvm_cmd.extend(["-usbdevice", constants.HT_MOUSE_TABLET])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment