<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - virt viewer QXL connection mouse unusable with >3ms latency with windows 8"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98034">98034</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>virt viewer QXL connection mouse unusable with >3ms latency with windows 8
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Spice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>virt-viewer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>spice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>andi-bz@firstfloor.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This was originally in #91219, but it seems like a different problem, so I'm
opening a new bug.


I'm connecting with virt-viewer to a remote system running a qemu KVM VM with
Windows 8.1. There is some latency on the connection (not a LAN)

I installed QXL drivers in Windows 8.1.

When I don't use the QXL graphics, the mouse works fine, just the repaint
refresh is painfully slow (can watch it redraw)

When I use the QXL graphics, the graphics is faster. Everything  works fine
when I connect locally on the system to the VM using QXL.

However as soon as there is some latency on the QXL connection the mouse
pointer becomes unusable: the mouse pointer still moves, but doesn't react to
clicks anymore. When the latency becomes higher it doesn't even move anymore.

The non QXL connection doesn't have this problem, even at higher latencies the
mouse always works fine.

I did some experiments to characterize this: i'm running a FC23 guest on the
system with the Windows VM and use it to connect virt-viewer to the windows
guest running on the same host.

Initially the mouse works fine (latency low enough).

Then I add some extra latency on the guest with 
(this requires install kernel-modules-extra on FC23)

tc qdisc add dev ens3 root netem delay 5ms
...
tc qdisc del dev ens3 root netem  # needed to change the value

With 0ms extra delay the mouse click works fine.
With 1ms extra delay it gets slower, but is still usable.
With 3ms extra delay is barely reacts to mouse click anymore (but still moves)
Usually the first click still works, but then later clicks don't, so it seems
something is stuck in the protocol?
With longer delays the mouse pointer also stops moving, not just the clicks.

Other experiments tried:
- It is not the specific FC23 virt viewer version. I also used an older version
from OpenSUSE Leap, and also a very recent version from opensuse, and they also
had the same problem.


Versions: (FC23)

virt-viewer-3.0-1.fc23.x86_64
qemu-kvm-2.4.1-11.fc23.x86_64

The windows guest is running:

Windows 8.1
Red Hat QXL controller 17.54.59.923  4/21/2016</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>