Bug 1894411

Summary: Mouse Stops Working After Installing Guest Drivers
Product: [Community] Virtualization Tools Reporter: adam.subanloewen
Component: virtio-winAssignee: Marek Kedzierski <mkedzier>
Status: NEW --- QA Contact: dehanmeng <demeng>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: coli, haoliu, luoyonggang, virt-maint, vrozenfe, yvugenfi
Target Milestone: ---Keywords: MigratedToJIRA
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
QEMU-KVM XML none

Description adam.subanloewen 2020-11-04 08:20:14 UTC
Created attachment 1726480 [details]
QEMU-KVM XML

Description of problem:

Mouse Stops Working After Installing Guest Drivers. When uninstalled, guest cursor can be released to host with Control-Alt, then captured again by clicking in the Virt-Manager window. After install (even if the virtio-input component is disabled), there is no guest mouse whatsoever, and clicking in the Virt-Manager window only captures the keyboard, not the mouse.

If the mouse device is passed through to the guest directly with Virt-Manager's "Redirect USB device", then the mouse works normally on an external display, but the cursor is not visible on the QXL display, although the mouse itself works (similar behaviour to this issue: https://bugzilla.redhat.com/show_bug.cgi?id=985461).

Version-Release number of selected component (if applicable):

Guest: Windows 10 Version 2004
Host: Ubuntu 20.04.1 LTS Linux Kernel 5.4.0-52-generic
Displays: External display using VFIO PCI eGPU passthrough, as well as QXL display.

Guest drivers (signed binaries downloaded from fedora docs) ISO releases:
0.1.185 (stable)
0.1.189 (latest)

QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.8)
libvirtd (libvirt) 6.0.0

How reproducible:

On a fresh setup, install windows guest drivers.

Actual results:

Mouse stops working in guest.

Expected results:

No change in mouse behaviour - should still function in guest and release to host using Control-Alt.

Additional info:

QEMU-KVM XML: https://www.dropbox.com/s/yl334na90ng1vsn/broccoli_live.xml?dl=0
QEMU-libvirt log: https://www.dropbox.com/s/b9nloshf6lins7z/broccoli.log?dl=0

Comment 1 Marek Kedzierski 2021-05-24 15:10:32 UTC
Reproduced on RHEL 8.4 and Windows 10 2004 with AMD RX 550 Radeon VFIO passthrough (not eGPU but regular one).


The issue appears in QEMU when at least two video cards are installed and one of them is the VFIO passthrough. 
In such configuration even if there is a standard VGA card specified and Basic Display drivers is automatically 
installed for that card, the mouse cursor starts disappearing on one of the desktops.


It looks like to be a Windows system issue - Windows cannot handle correctly mouse cursor transition between 
desktops when each of them is being displayed by a different card.

Comment 4 Yonggang Luo 2022-05-12 07:53:36 UTC
I also faced this issue