Bug 1479623 - Scroll wheel of virtio-mouse doesn't work for rhel7.4 guest [NEEDINFO]
Scroll wheel of virtio-mouse doesn't work for rhel7.4 guest
Status: ON_QA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev (Show other bugs)
7.4
All Linux
medium Severity medium
: rc
: ---
Assigned To: Marc-Andre Lureau
Guo, Zhiyi
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-08-08 21:49 EDT by Guo, Zhiyi
Modified: 2018-06-07 01:55 EDT (History)
10 users (show)

See Also:
Fixed In Version: qemu-kvm-rhev-2.12.0-1.el7
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: ---
jinzhao: needinfo? (marcandre.lureau)


Attachments (Terms of Use)

  None (edit)
Description Guo, Zhiyi 2017-08-08 21:49:23 EDT
Description of problem:
Scroll wheel of virtio-mouse doesn't work for rhel7.4 guest

Version-Release number of selected component (if applicable):
3.10.0-693.el7.x86_64(host & guest)
qemu-kvm-rhev-2.9.0-16.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1.Boot a guest with virtio-mouse using qemu cli:
/usr/libexec/qemu-kvm -name virtio-vga -m 2G -machine pc,accel=kvm,vmport=off \
        -cpu Skylake-Client\
        -smp 1 \
        -serial unix:/tmp/console1,server,nowait \
        -monitor stdio \
        -device VGA,id=vga1 \
        -drive file=rhelsp4.qcow2,if=none,id=drive-scsi-disk0,format=qcow2,cache=none,werror=stop,rerror=stop
 -device virtio-scsi-pci,id=scsi0,addr=04 -device scsi-hd,drive=drive-scsi-disk0,bus=scsi0.0,scsi-id=0,lun=0,
id=scsi-disk0,bootindex=1 \
        -netdev tap,id=idinWyYp,vhost=on -device virtio-net-pci,mac=42:ce:a9:d2:4d:d8,id=idlbq7eA,netdev=idin
WyYp \
        -vnc :0  \
        -device ich9-usb-uhci6 \
        -device virtio-keyboard-pci,id=kbd-bus  -device virtio-mouse-pci,id=mouse-bus  \

2.In guest, test virtio-mouse with xinput. In my case, I list input devices by:
#xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ QEMU Virtio Mouse                         id=8    [slave  pointer  (2)]
⎜   ↳ ImExPS/2 Generic Explorer Mouse           id=10   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ QEMU Virtio Keyboard                      id=7    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=9    [slave  keyboard (3)]

And test virtio mouse by:
#xinput test 8
xinput will print the events recevied from virtio mouse, then scroll the scroll wheel of mouse
3.

Actual results:
Nothing prompt after scrolling the scroll wheel of mouse

Expected results:
Events of scroll wheel should be prompted 

Additional info:
1) Both vnc and spice has this issue.
2) Test against ps2/vmmouse/usb-kbd/spice vdagent tablet, all of them can generate scroll events during test.
3) No such issue happen in windows 10 guest with virtio-win driver virtio-win-1.9.3.iso, scroll wheel works correctly.
4) Test against upstream stable qemu2.6.2, also has this issue, so this is not a regression of qemu-kvm-rhev.
Comment 2 Xujun Ma 2017-08-09 20:26:31 EDT
The same issue on the ppc platform.
Comment 3 Marc-Andre Lureau 2017-08-10 09:14:42 EDT
possible fix:
http://patchew.org/QEMU/20170808224750.23904-1-marcandre.lureau@redhat.com/
Comment 4 Marc-Andre Lureau 2017-10-06 07:31:08 EDT
Fixed in commit f4924974c7c72560f68ab298ac25a525a28a2124
Comment 5 Guo, Zhiyi 2017-11-13 01:05:39 EST
Test against rhel 7.5 host & guest with kernel 3.10.0-768.el7.x86_64 and qemu-kvm-rhev-2.10.0-5.el7.x86_64,

wheel buttons are missing for both virtio-mouse-pci and virtio-tablet-pci.
Comment 6 Marc-Andre Lureau 2017-11-16 06:13:53 EST
(In reply to Guo, Zhiyi from comment #5)
> Test against rhel 7.5 host & guest with kernel 3.10.0-768.el7.x86_64 and
> qemu-kvm-rhev-2.10.0-5.el7.x86_64,
> 
> wheel buttons are missing for both virtio-mouse-pci and virtio-tablet-pci.

The fixed will be in 2.11, and will require wheel-axis=true with machine < 2.11. I don't know if it's worth to backport. Should we move it to 7.6? Gerd, what do you think?
Comment 7 Gerd Hoffmann 2017-11-17 01:14:29 EST
> The fixed will be in 2.11, and will require wheel-axis=true with machine <
> 2.11. I don't know if it's worth to backport. Should we move it to 7.6?
> Gerd, what do you think?

Defer to 7.6 is fine I think.
Comment 8 Marc-Andre Lureau 2018-04-16 09:23:32 EDT
Fixed in commit f4924974c7c72560f68ab298ac25a525a28a2124 upstream

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