RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1513861 - The qemu usb tablet takes no effect when attaches 2 or more qemu usb mouses
Summary: The qemu usb tablet takes no effect when attaches 2 or more qemu usb mouses
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.5
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Gu Nini
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-16 07:07 UTC by Gu Nini
Modified: 2017-11-17 06:59 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-17 06:59:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gu Nini 2017-11-16 07:07:39 UTC
Description of problem:
The qemu usb tablet takes no effect when attaches 2 or more qemu usb mouses.

Version-Release number of selected component (if applicable):
Host kernel: 3.10.0-765.el7.x86_64
Qemu: qemu-kvm-rhev-2.10.0-6.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Start a guest with following cmd:

/usr/libexec/qemu-kvm \
    -name 'avocado-vt-vm1'  \
    -sandbox off  \
    -nodefaults  \
    -vga std  \
    -device nec-usb-xhci,id=usbtest,bus=pci.0,addr=0x3 \
    -device virtio-scsi-pci,id=virtio_scsi_pci0,bus=pci.0,addr=0x4 \
    -drive id=drive_image1,if=none,snapshot=off,aio=native,cache=none,format=qcow2,file=/home/kvm_autotest_root/images/rhel75-64-virtio-scsi.qcow2 \
    -device scsi-hd,id=image1,drive=drive_image1 \
    -device virtio-net-pci,mac=9a:e4:e5:e6:e7:e8,id=idOCesHt,vectors=4,netdev=id4lq6hH,bus=pci.0,addr=0x5  \
    -netdev tap,id=id4lq6hH,vhost=on \
    -m 8192  \
    -smp 4,cores=2,threads=1,sockets=2  \
    -device usb-tablet,id=usb-e1,bus=usbtest.0,port=1 \
    -device usb-mouse,id=usb-d1,bus=usbtest.0,port=2 \
    -device usb-mouse,id=usb-d2,bus=usbtest.0,port=3 \
    -vnc :0  \
    -rtc base=localtime,clock=host,driftfix=slew  \
    -boot menu=off,strict=off,order=cdn,once=c \
    -enable-kvm \
    -monitor stdio

2. After the guest boots up, check the effectiveness of the tablet.


Actual results:
The tablet takes no effect, i.e. there is double cursor.

Expected results:
No double cursor.

Additional info:
Both windows guest and linux guest have the problem, I have tried RHEL7.5/Win2016/Win10.64.

Comment 2 Gerd Hoffmann 2017-11-17 06:59:04 UTC
(In reply to Gu Nini from comment #0)
> Description of problem:
> The qemu usb tablet takes no effect when attaches 2 or more qemu usb mouses.

Not supported.  And there is little reason to change that as it is not very useful to attach multiple mice to a virtual machine.

Some background:  The pointer input events are routed to the most recently activated input device, so typically the ps/2 mouse is active at boot and qemu switches over to the usb tablet as soon as the guest loads the driver and starts talking to the device.  In case multiple usb input devices are present it depends on the guests initialization order which of them ends up being active, so it could be a usb mouse instead of the usb tablet.


Note You need to log in before you can comment on or make changes to this bug.