Package: qemu-kvm
Version: 1:2.8+dfsg-2~bpo8+1
Severity: normal
Tags: patch upstream

Dear Maintainer,

qemu-kvm 2.8 (from jessie-backports) has an issue that breaks USB device 
passthrough to guests.  See:

https://bugs.launchpad.net/qemu/+bug/1653384

The VM crashes as soon as USB access occurs.  This error shows in the libvirt 
log:

qemu-system-x86_64: /build/qemu-m5GCLa/qemu-2.8+dfsg/hw/usb/core.c:619: 
usb_packet_cleanup: Assertion `!usb_packet_is_inflight(p)' failed.

The following patch seems to fix it (taken from the above URL):

--- qemu-2.8+dfsg.orig/hw/usb/hcd-xhci.c
+++ qemu-2.8+dfsg/hw/usb/hcd-xhci.c
@@ -2198,7 +2198,9 @@ static void xhci_kick_epctx(XHCIEPContex
             xhci_complete_packet(xfer);
         }
         assert(!xfer->running_retry);
-        xhci_ep_free_xfer(epctx->retry);
+        if (xfer->complete) {
+            xhci_ep_free_xfer(epctx->retry);
+        }
         epctx->retry = NULL;
     }

Thanks!

-- System Information:
Debian Release: 8.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages qemu-kvm depends on:
ii  qemu-system-x86  1:2.8+dfsg-2~bpo8+1

qemu-kvm recommends no packages.

qemu-kvm suggests no packages.

-- no debconf information

Reply via email to