Web Console for Power8 KVM guest sends mouse events to guest mouse instead of guest tablet?

Bug #1776929 reported by Nathaniel Sherry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Confirmed
Low
Unassigned

Bug Description

We're putting some IBM Power8 hardware into our cloud with RHEL7.5 and KVM. The guest mouse cursor in the web console doesn't sync up with the user's mouse. It moves with it in the same direction, but doesn't move at the same rate, and doesn't appear in the same position.

When we delete the mouse device from the guest, leaving only the tablet device, the web console's mouse starts working properly again.

We're currently running Pike, but should be at Queens in a few weeks if re-testing on the latest release is desired.

I can provide logs or libvirt xml upon request.

Apologies if this should have been filed against nova.

Update on 2019-01-14:

We've upgraded to Rocky, and the issue persists.

We think this issue has to do with the mouse being USB on Power8 but PS/2 on x86. When the tablet is USB but the mouse is PS/2, the tablet gets priority; when both are USB, the mouse does, and we get relative, rather than absolute, movement

Revision history for this message
Akihiro Motoki (amotoki) wrote :

horizon just opens port 6080 provided by nova-novncproxy, so there is nothing to do in horizon.
Forwarding this to nova.

affects: horizon → nova
description: updated
Revision history for this message
Lijun Pan (smlpan) wrote :

Hi,

I am trying to reproduce the exact issue but need the following info from you for both the “non-sync-up” and the sync-up case.
1. Can you provide the XML you have mentioned so we can confirm what options you are running exactly. Would you post the result form “$ ps aux | grep qemu”.
2. What specific QEMU version are you running?
3. Are you running the RHEL7.5 as host and Ubuntu 18.04 as guest? Or Ubuntu 18.04 as host and RHEL7.5 as guest?

Thanks,

tags: added: console powervm
Revision history for this message
Nathaniel Sherry (nsherry4) wrote :

We're not running Ubuntu anywhere, we're running RHEL on both the host and the guest.

I've attached some files, the "x86" files are the "sync-up", the "p8" files are the "non-sync-up".

Revision history for this message
Lijun Pan (smlpan) wrote :

The temporary workaround is: change the sequence of usb-tablet and usb-mouse. Make sure usb tablet appears behind the usb mouse in the configuration. You can compare the following with the one you attached. A complete patch will be available later.

1. If you use virsh xml file.

   <input type='mouse' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='keyboard' bus='usb'>
      <alias name='input1'/>
      <address type='usb' bus='0' port='2'/>
    </input>
    <input type='tablet' bus='usb'>
      <alias name='input2'/>
      <address type='usb' bus='0' port='3'/>
    </input>

2. if you run the command line.
qemu-system-ppc64 -device usb-mouse,id=input0,bus=usb.0,port=1 -device usb-kbd,id=input1,bus=usb.0,port=2 -device usb-tablet,id=input2,bus=usb.0,port=3 ....

Changed in nova:
importance: Undecided → Low
Changed in nova:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.