Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
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


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.