All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest.
@ 2014-04-01 22:29 zelluz
  2014-04-02 22:44 ` [Qemu-devel] [Bug 1301047] " zelluz
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zelluz @ 2014-04-01 22:29 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

I have the following issue with my Windows 8.1 guest. (Technical stuff
is at the bottom):

I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
up. I can play both games just as good as any other game in the
guest(passing through the USB Rocksmith Cable and audio is working
perfect), however when I exit one of these two applications the guest
freezes completely up. I loose contact via Synergy(mouse/keyboard), I
cant ping the guest, the screen freezes(always freezing before I see the
desktop again), CPU usage of the processes drops down to 0. The memory
dedicated to the guest is latent/in use though, as reported by htop/free
-m.

I have among other things tested with lowering the memory from 16Gb to
8Gb and CPU used from 6 to 4. The issue remains unsolved.

My host(Arch Linux) works fine while the host is frozen up.

Is it reproducible?
Yes, every time with the same applications when exiting. Starting and using the applications works fine.

Expected outcome:
Application closes, guest does not freeze.

My theory is that the GPU is flushing its memory cache in a way that
Qemu is not prepared for which results in a lock of the Qemu process
where it cant get out and therefore the guest is frozen/locked up.

Suggested solution(if at all possible):
Implement a function which get called if the Qemu lock appears where the GPU gets disconnected and then connected again. (Not sure if safe? PCI Express supports hot plugging?)
Or make sure the Qemu process can not get into the state where a total freeze of the machine can happen if there is anything GPU related freezes. (So we still can trigger a remote reboot via Powershell/CMD etc)

If there is some more information you need, please do not hesitate to ask for it.
Also, this is my first bug report so please be kind, I appreciate any feedback :)

Technical Information:

CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
QEMU version: qemu-git 2.0.r31965.g63678e1-1
Host Kernel: Linux 3.13.6-1-mainline x86_64
Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

Qemu command line used:

sudo -E qemu-system-x86_64 \
-enable-kvm \
-M q35 \
-m 8G \
-mem-path /dev/hugepages \
-mem-prealloc \
-cpu host \
-smp 4,sockets=1,cores=4,threads=1 \
-device vfio-pci,host=00:1b.0 \
-bios /usr/share/qemu/bios.bin \
-vga none \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
-nographic \
-device ahci,bus=pcie.0,id=ahci \
-drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
-device ide-hd,bus=ahci.0,drive=disk \
-device vfio-pci,host=00:19.0,bus=pcie.0 \
-drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
-device ide-hd,bus=ahci.1,drive=mmo \
-drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
-usb -usbdevice host:045e:028e \
-usb -usbdevice host:12ba:00ff \
-net none \
-device ide-hd,bus=ahci.2,drive=steam

Strace output in the seconds leading up to the freeze:
See attachment .

Journalctl output on the host while the guest froze:

Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
Apr 01 22:05:46 ultimaarch kernel: Call Trace:
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

** Affects: qemu
     Importance: Undecided
         Status: New

** Attachment added: "Strace output"
   https://bugs.launchpad.net/bugs/1301047/+attachment/4059440/+files/vm_trace1april.txt

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes after exiting an 3D application on guest.

Status in QEMU:
  New

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
  up. I can play both games just as good as any other game in the
  guest(passing through the USB Rocksmith Cable and audio is working
  perfect), however when I exit one of these two applications the guest
  freezes completely up. I loose contact via Synergy(mouse/keyboard), I
  cant ping the guest, the screen freezes(always freezing before I see
  the desktop again), CPU usage of the processes drops down to 0. The
  memory dedicated to the guest is latent/in use though, as reported by
  htop/free -m.

  I have among other things tested with lowering the memory from 16Gb to
  8Gb and CPU used from 6 to 4. The issue remains unsolved.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time with the same applications when exiting. Starting and using the applications works fine.

  Expected outcome:
  Application closes, guest does not freeze.

  My theory is that the GPU is flushing its memory cache in a way that
  Qemu is not prepared for which results in a lock of the Qemu process
  where it cant get out and therefore the guest is frozen/locked up.

  Suggested solution(if at all possible):
  Implement a function which get called if the Qemu lock appears where the GPU gets disconnected and then connected again. (Not sure if safe? PCI Express supports hot plugging?)
  Or make sure the Qemu process can not get into the state where a total freeze of the machine can happen if there is anything GPU related freezes. (So we still can trigger a remote reboot via Powershell/CMD etc)

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes after exiting an 3D application on guest.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
@ 2014-04-02 22:44 ` zelluz
  2014-04-03  7:23 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough zelluz
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-02 22:44 UTC (permalink / raw)
  To: qemu-devel

An update to my issues. It seems that as soon as I remove the USB
devices in my qemu command everything is working perfect. I suspect
Battlefield has frozen upon exit since I had a XBox Controller connected
with pass through to Windows. Even though I did not use this Xbox
controller I got this freeze every time, so I guess Battlefield checks
the controller somehow upon exit.

This does not resolve my Rocksmith 2014 issue though, since I need that USB adapter to learn the guitar :)
Anyways, I am happy that the graphics adapter is working as intended.
It is an issue with USB devices passed through to guest.

I have tested with both USB 3.0 and USB 2.0 ports and receive the same
issue. This message I receive in my journalctl file is the key to fix it
somehow I think: "xhci_hcd 0000:00:14.0: ERROR Transfer event for
disabled endpoint or incorrect stream ring"

** Changed in: qemu
       Status: New => In Progress

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes after exiting an 3D application on guest.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
  up. I can play both games just as good as any other game in the
  guest(passing through the USB Rocksmith Cable and audio is working
  perfect), however when I exit one of these two applications the guest
  freezes completely up. I loose contact via Synergy(mouse/keyboard), I
  cant ping the guest, the screen freezes(always freezing before I see
  the desktop again), CPU usage of the processes drops down to 0. The
  memory dedicated to the guest is latent/in use though, as reported by
  htop/free -m.

  I have among other things tested with lowering the memory from 16Gb to
  8Gb and CPU used from 6 to 4. The issue remains unsolved.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time with the same applications when exiting. Starting and using the applications works fine.

  Expected outcome:
  Application closes, guest does not freeze.

  My theory is that the GPU is flushing its memory cache in a way that
  Qemu is not prepared for which results in a lock of the Qemu process
  where it cant get out and therefore the guest is frozen/locked up.

  Suggested solution(if at all possible):
  Implement a function which get called if the Qemu lock appears where the GPU gets disconnected and then connected again. (Not sure if safe? PCI Express supports hot plugging?)
  Or make sure the Qemu process can not get into the state where a total freeze of the machine can happen if there is anything GPU related freezes. (So we still can trigger a remote reboot via Powershell/CMD etc)

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
  2014-04-02 22:44 ` [Qemu-devel] [Bug 1301047] " zelluz
@ 2014-04-03  7:23 ` zelluz
  2014-04-03  8:06 ` zelluz
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-03  7:23 UTC (permalink / raw)
  To: qemu-devel

** Summary changed:

- Windows guest freezes after exiting an 3D application on guest.
+ Windows guest freezes while using USB passthrough.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using USB passthrough.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
  up. I can play both games just as good as any other game in the
  guest(passing through the USB Rocksmith Cable and audio is working
  perfect), however when I exit one of these two applications the guest
  freezes completely up. I loose contact via Synergy(mouse/keyboard), I
  cant ping the guest, the screen freezes(always freezing before I see
  the desktop again), CPU usage of the processes drops down to 0. The
  memory dedicated to the guest is latent/in use though, as reported by
  htop/free -m.

  I have among other things tested with lowering the memory from 16Gb to
  8Gb and CPU used from 6 to 4. The issue remains unsolved.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time with the same applications when exiting. Starting and using the applications works fine.

  Expected outcome:
  Application closes, guest does not freeze.

  My theory is that the GPU is flushing its memory cache in a way that
  Qemu is not prepared for which results in a lock of the Qemu process
  where it cant get out and therefore the guest is frozen/locked up.

  Suggested solution(if at all possible):
  Implement a function which get called if the Qemu lock appears where the GPU gets disconnected and then connected again. (Not sure if safe? PCI Express supports hot plugging?)
  Or make sure the Qemu process can not get into the state where a total freeze of the machine can happen if there is anything GPU related freezes. (So we still can trigger a remote reboot via Powershell/CMD etc)

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
  2014-04-02 22:44 ` [Qemu-devel] [Bug 1301047] " zelluz
  2014-04-03  7:23 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough zelluz
@ 2014-04-03  8:06 ` zelluz
  2014-04-05  0:05 ` zelluz
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-03  8:06 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):
  
  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).
  
  When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
  up. I can play both games just as good as any other game in the
  guest(passing through the USB Rocksmith Cable and audio is working
  perfect), however when I exit one of these two applications the guest
  freezes completely up. I loose contact via Synergy(mouse/keyboard), I
  cant ping the guest, the screen freezes(always freezing before I see the
  desktop again), CPU usage of the processes drops down to 0. The memory
  dedicated to the guest is latent/in use though, as reported by htop/free
  -m.
  
- I have among other things tested with lowering the memory from 16Gb to
- 8Gb and CPU used from 6 to 4. The issue remains unsolved.
+ If I remove the USB devices from the qemu command; Battlefield 4 has no issues. I therefore strongly believes that the USB Xbox controller is somehow locking the guest up.
+ Rocksmith 2014 requires the USB adapter so I can not confirm how it responds without the USB adapter. However, If I go to my audio settings-> record settings(where I can see the Rocksmith cable, as it is a recorder). The vm will freeze up and give me the same error messages as I get while I exits BF4 with Xbox Controller passed through.
  
  My host(Arch Linux) works fine while the host is frozen up.
  
  Is it reproducible?
- Yes, every time with the same applications when exiting. Starting and using the applications works fine.
+ Yes, every time the USB devices are passed through(Xbox Controller and/or Rocksmith USB cable), the guest will at some point lock up while the USB devices are used.
  
  Expected outcome:
- Application closes, guest does not freeze.
- 
- My theory is that the GPU is flushing its memory cache in a way that
- Qemu is not prepared for which results in a lock of the Qemu process
- where it cant get out and therefore the guest is frozen/locked up.
+ USB devices works without freezing up the guest.
  
  Suggested solution(if at all possible):
- Implement a function which get called if the Qemu lock appears where the GPU gets disconnected and then connected again. (Not sure if safe? PCI Express supports hot plugging?)
- Or make sure the Qemu process can not get into the state where a total freeze of the machine can happen if there is anything GPU related freezes. (So we still can trigger a remote reboot via Powershell/CMD etc)
+ Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
+ Or, make it so that the guest can never lock up while this happens.
  
  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)
  
  Technical Information:
  
  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014
  
  Qemu command line used:
  
  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam
  
  Strace output in the seconds leading up to the freeze:
  See attachment .
  
  Journalctl output on the host while the guest froze:
  
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using USB passthrough.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
  up. I can play both games just as good as any other game in the
  guest(passing through the USB Rocksmith Cable and audio is working
  perfect), however when I exit one of these two applications the guest
  freezes completely up. I loose contact via Synergy(mouse/keyboard), I
  cant ping the guest, the screen freezes(always freezing before I see
  the desktop again), CPU usage of the processes drops down to 0. The
  memory dedicated to the guest is latent/in use though, as reported by
  htop/free -m.

  If I remove the USB devices from the qemu command; Battlefield 4 has no issues. I therefore strongly believes that the USB Xbox controller is somehow locking the guest up.
  Rocksmith 2014 requires the USB adapter so I can not confirm how it responds without the USB adapter. However, If I go to my audio settings-> record settings(where I can see the Rocksmith cable, as it is a recorder). The vm will freeze up and give me the same error messages as I get while I exits BF4 with Xbox Controller passed through.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB devices are passed through(Xbox Controller and/or Rocksmith USB cable), the guest will at some point lock up while the USB devices are used.

  Expected outcome:
  USB devices works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or, make it so that the guest can never lock up while this happens.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
                   ` (2 preceding siblings ...)
  2014-04-03  8:06 ` zelluz
@ 2014-04-05  0:05 ` zelluz
  2014-04-05  0:10 ` zelluz
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-05  0:05 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):
  
  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).
  
- When it comes to Rocksmith 2014 and Battlefield 4 things starts to act
- up. I can play both games just as good as any other game in the
- guest(passing through the USB Rocksmith Cable and audio is working
- perfect), however when I exit one of these two applications the guest
- freezes completely up. I loose contact via Synergy(mouse/keyboard), I
- cant ping the guest, the screen freezes(always freezing before I see the
- desktop again), CPU usage of the processes drops down to 0. The memory
- dedicated to the guest is latent/in use though, as reported by htop/free
- -m.
+ When it comes to Rocksmith 2014 things starts to act up. I can play the
+ game just as good as any other game in the guest(passing through the USB
+ Rocksmith Cable and audio is working perfect), however when I exit the
+ application the guest freezes completely up. I loose contact via
+ Synergy(mouse/keyboard), I cant ping the guest, the screen
+ freezes(always freezing before I see the desktop again), CPU usage of
+ the processes drops down to 0. The memory dedicated to the guest is
+ latent/in use though, as reported by htop/free -m.
  
- If I remove the USB devices from the qemu command; Battlefield 4 has no issues. I therefore strongly believes that the USB Xbox controller is somehow locking the guest up.
- Rocksmith 2014 requires the USB adapter so I can not confirm how it responds without the USB adapter. However, If I go to my audio settings-> record settings(where I can see the Rocksmith cable, as it is a recorder). The vm will freeze up and give me the same error messages as I get while I exits BF4 with Xbox Controller passed through.
+ This also happens when I go to my sound settings-> record settings(where
+ I can see the Rocksmith cable, as it is a recorder). The vm will freeze
+ up after a couple of seconds being in that menu.
+ 
+ If I remove the USB device from my qemu command and go into my sound
+ settings->record settings there are no freezing issues.
  
  My host(Arch Linux) works fine while the host is frozen up.
  
  Is it reproducible?
- Yes, every time the USB devices are passed through(Xbox Controller and/or Rocksmith USB cable), the guest will at some point lock up while the USB devices are used.
+ Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
  
  Expected outcome:
- USB devices works without freezing up the guest.
+ USB device works without freezing up the guest.
  
  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or, make it so that the guest can never lock up while this happens.
  
  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)
  
  Technical Information:
  
  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014
  
  Qemu command line used:
  
  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam
  
  Strace output in the seconds leading up to the freeze:
  See attachment .
  
  Journalctl output on the host while the guest froze:
  
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using USB passthrough.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 things starts to act up. I can play
  the game just as good as any other game in the guest(passing through
  the USB Rocksmith Cable and audio is working perfect), however when I
  exit the application the guest freezes completely up. I loose contact
  via Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.

  This also happens when I go to my sound settings-> record
  settings(where I can see the Rocksmith cable, as it is a recorder).
  The vm will freeze up after a couple of seconds being in that menu.

  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.

  Expected outcome:
  USB device works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or, make it so that the guest can never lock up while this happens.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
                   ` (3 preceding siblings ...)
  2014-04-05  0:05 ` zelluz
@ 2014-04-05  0:10 ` zelluz
  2014-04-05  0:15 ` zelluz
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-05  0:10 UTC (permalink / raw)
  To: qemu-devel

More technical information about Rocksmith Real Tone Cable(almost all the way to the bottom, beneath "Rocksmith Real Tone Cable):
http://forums.ubi.com/showthread.php/802854-Rocksmith-2014-PC-Configuration-and-FAQ-Forums

Here is the output of lsusb -vvv:

Bus 003 Device 005: ID 12ba:00ff Licensed by Sony Computer Entertainment America Rocksmith Guitar Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        16
  idVendor           0x12ba Licensed by Sony Computer Entertainment America
  idProduct          0x00ff Rocksmith Guitar Adapter
  bcdDevice            1.00
  iManufacturer           1 Hercules
  iProduct                2 Rocksmith USB Guitar Adapter
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength          152
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      1 Control Device
      bInterfaceProtocol      0 
      iInterface              0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      1 (HEADER)
        bcdADC               1.00
        wTotalLength           39
        bInCollection           1
        baInterfaceNr( 0)       1
      AudioControl Interface Descriptor:
        bLength                12
        bDescriptorType        36
        bDescriptorSubtype      2 (INPUT_TERMINAL)
        bTerminalID             2
        wTerminalType      0x0201 Microphone
        bAssocTerminal          0
        bNrChannels             1
        wChannelConfig     0x0001
          Left Front (L)
        iChannelNames           0 
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      3 (OUTPUT_TERMINAL)
        bTerminalID             7
        wTerminalType      0x0101 USB Streaming
        bAssocTerminal          0
        bSourceID              10
        iTerminal               0 
      AudioControl Interface Descriptor:
        bLength                 9
        bDescriptorType        36
        bDescriptorSubtype      6 (FEATURE_UNIT)
        bUnitID                10
        bSourceID               2
        bControlSize            1
        bmaControls( 0)      0x03
          Mute Control
          Volume Control
        bmaControls( 1)      0x00
        iFeature                0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         1 Audio
      bInterfaceSubClass      2 Streaming
      bInterfaceProtocol      0 
      iInterface              0 
      AudioStreaming Interface Descriptor:
        bLength                 7
        bDescriptorType        36
        bDescriptorSubtype      1 (AS_GENERAL)
        bTerminalLink           7
        bDelay                  1 frames
        wFormatTag              1 PCM
      AudioStreaming Interface Descriptor:
        bLength                29
        bDescriptorType        36
        bDescriptorSubtype      2 (FORMAT_TYPE)
        bFormatType             1 (FORMAT_TYPE_I)
        bNrChannels             1
        bSubframeSize           2
        bBitResolution         16
        bSamFreqType            7 Discrete
        tSamFreq[ 0]         8000
        tSamFreq[ 1]        11025
        tSamFreq[ 2]        16000
        tSamFreq[ 3]        22050
        tSamFreq[ 4]        32000
        tSamFreq[ 5]        44100
        tSamFreq[ 6]        48000
      Endpoint Descriptor:
        bLength                 9
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes           13
          Transfer Type            Isochronous
          Synch Type               Synchronous
          Usage Type               Data
        wMaxPacketSize     0x0064  1x 100 bytes
        bInterval               1
        bRefresh                0
        bSynchAddress           0
        AudioControl Endpoint Descriptor:
          bLength                 7
          bDescriptorType        37
          bDescriptorSubtype      1 (EP_GENERAL)
          bmAttributes         0x01
            Sampling Frequency
          bLockDelayUnits         0 Undefined
          wLockDelay              0 Undefined
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      26
          Report Descriptor: (length is 26)
            Item(Global): Usage Page, data= [ 0x0c ] 12
                            Consumer
            Item(Local ): Usage, data= [ 0x01 ] 1
                            Consumer Control
            Item(Main  ): Collection, data= [ 0x01 ] 1
                            Application
            Item(Global): Logical Minimum, data= [ 0x00 ] 0
            Item(Global): Logical Maximum, data= [ 0xff 0x00 ] 255
            Item(Local ): Usage, data= [ 0x00 ] 0
                            Unassigned
            Item(Global): Report Size, data= [ 0x08 ] 8
            Item(Global): Report Count, data= [ 0x10 ] 16
            Item(Main  ): Input, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Local ): Usage, data= [ 0x00 ] 0
                            Unassigned
            Item(Global): Report Count, data= [ 0x10 ] 16
            Item(Main  ): Output, data= [ 0x02 ] 2
                            Data Variable Absolute No_Wrap Linear
                            Preferred_State No_Null_Position Non_Volatile Bitfield
            Item(Main  ): End Collection, data=none
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x87  EP 7 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               1
Device Status:     0x0000
  (Bus Powered)

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using USB passthrough.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 things starts to act up. I can play
  the game just as good as any other game in the guest(passing through
  the USB Rocksmith Cable and audio is working perfect), however when I
  exit the application the guest freezes completely up. I loose contact
  via Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.

  This also happens when I go to my sound settings-> record
  settings(where I can see the Rocksmith cable, as it is a recorder).
  The vm will freeze up after a couple of seconds being in that menu.

  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.

  Expected outcome:
  USB device works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or, make it so that the guest can never lock up while this happens.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
                   ` (4 preceding siblings ...)
  2014-04-05  0:10 ` zelluz
@ 2014-04-05  0:15 ` zelluz
  2014-04-05  0:26 ` zelluz
  2015-02-09  8:39 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using passthrough on USB audio recorder zelluz
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-05  0:15 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):
  
  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).
  
  When it comes to Rocksmith 2014 things starts to act up. I can play the
  game just as good as any other game in the guest(passing through the USB
  Rocksmith Cable and audio is working perfect), however when I exit the
  application the guest freezes completely up. I loose contact via
  Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.
  
  This also happens when I go to my sound settings-> record settings(where
  I can see the Rocksmith cable, as it is a recorder). The vm will freeze
  up after a couple of seconds being in that menu.
  
  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.
  
+ The guest will however not freeze up while browsing through device
+ manager and looking at the USB Rocksmith Cable from there.
+ 
  My host(Arch Linux) works fine while the host is frozen up.
  
  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
+ Tried with both USB 2.0 and USB 3.0 port with the same thing happening.
  
  Expected outcome:
  USB device works without freezing up the guest.
  
  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
- Or, make it so that the guest can never lock up while this happens.
+ Or make it so that the guest can never lock up while this happens.
  
  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)
  
  Technical Information:
  
  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014
  
  Qemu command line used:
  
  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam
  
  Strace output in the seconds leading up to the freeze:
  See attachment .
  
  Journalctl output on the host while the guest froze:
  
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using USB passthrough.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 things starts to act up. I can play
  the game just as good as any other game in the guest(passing through
  the USB Rocksmith Cable and audio is working perfect), however when I
  exit the application the guest freezes completely up. I loose contact
  via Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.

  This also happens when I go to my sound settings-> record
  settings(where I can see the Rocksmith cable, as it is a recorder).
  The vm will freeze up after a couple of seconds being in that menu.

  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.

  The guest will however not freeze up while browsing through device
  manager and looking at the USB Rocksmith Cable from there.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
  Tried with both USB 2.0 and USB 3.0 port with the same thing happening.

  Expected outcome:
  USB device works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or make it so that the guest can never lock up while this happens.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
                   ` (5 preceding siblings ...)
  2014-04-05  0:15 ` zelluz
@ 2014-04-05  0:26 ` zelluz
  2015-02-09  8:39 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using passthrough on USB audio recorder zelluz
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2014-04-05  0:26 UTC (permalink / raw)
  To: qemu-devel

** Description changed:

  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):
  
  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).
  
  When it comes to Rocksmith 2014 things starts to act up. I can play the
  game just as good as any other game in the guest(passing through the USB
  Rocksmith Cable and audio is working perfect), however when I exit the
  application the guest freezes completely up. I loose contact via
  Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.
  
  This also happens when I go to my sound settings-> record settings(where
  I can see the Rocksmith cable, as it is a recorder). The vm will freeze
  up after a couple of seconds being in that menu.
  
  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.
  
  The guest will however not freeze up while browsing through device
  manager and looking at the USB Rocksmith Cable from there.
  
  My host(Arch Linux) works fine while the host is frozen up.
  
  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
  Tried with both USB 2.0 and USB 3.0 port with the same thing happening.
  
  Expected outcome:
  USB device works without freezing up the guest.
  
  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or make it so that the guest can never lock up while this happens.
+ 
+ Information about USB Rocksmith Cable:
+ The realtone guitar interface cable is really just a simple USB sound card which is seen as a USB microphone by a computer or console game system. This is actually identical to other 1/4″ to USB adapters such as the Behringer UCG102 Guitar to USB interface.
  
  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)
  
  Technical Information:
  
  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014
  
  Qemu command line used:
  
  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam
  
  Strace output in the seconds leading up to the freeze:
  See attachment .
  
  Journalctl output on the host while the guest froze:
  
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

** Summary changed:

- Windows guest freezes while using USB passthrough.
+ Windows guest freezes while using passthrough on USB audio recorder.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using passthrough on USB audio recorder.

Status in QEMU:
  In Progress

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 things starts to act up. I can play
  the game just as good as any other game in the guest(passing through
  the USB Rocksmith Cable and audio is working perfect), however when I
  exit the application the guest freezes completely up. I loose contact
  via Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.

  This also happens when I go to my sound settings-> record
  settings(where I can see the Rocksmith cable, as it is a recorder).
  The vm will freeze up after a couple of seconds being in that menu.

  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.

  The guest will however not freeze up while browsing through device
  manager and looking at the USB Rocksmith Cable from there.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
  Tried with both USB 2.0 and USB 3.0 port with the same thing happening.

  Expected outcome:
  USB device works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or make it so that the guest can never lock up while this happens.

  Information about USB Rocksmith Cable:
  The realtone guitar interface cable is really just a simple USB sound card which is seen as a USB microphone by a computer or console game system. This is actually identical to other 1/4″ to USB adapters such as the Behringer UCG102 Guitar to USB interface.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using passthrough on USB audio recorder.
  2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
                   ` (6 preceding siblings ...)
  2014-04-05  0:26 ` zelluz
@ 2015-02-09  8:39 ` zelluz
  7 siblings, 0 replies; 9+ messages in thread
From: zelluz @ 2015-02-09  8:39 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1301047

Title:
  Windows guest freezes while using passthrough on USB audio recorder.

Status in QEMU:
  Invalid

Bug description:
  I have the following issue with my Windows 8.1 guest. (Technical stuff
  is at the bottom):

  I have vfio-binded my graphics card(NVIDIA GTX670) and is passing it through to the guest.
  I run heavy 3D applications such as games(Guild Wars 2, Diablo 3, DOTA etc) which works fine(performance is about <90% of a "physical" Windows).

  When it comes to Rocksmith 2014 things starts to act up. I can play
  the game just as good as any other game in the guest(passing through
  the USB Rocksmith Cable and audio is working perfect), however when I
  exit the application the guest freezes completely up. I loose contact
  via Synergy(mouse/keyboard), I cant ping the guest, the screen
  freezes(always freezing before I see the desktop again), CPU usage of
  the processes drops down to 0. The memory dedicated to the guest is
  latent/in use though, as reported by htop/free -m.

  This also happens when I go to my sound settings-> record
  settings(where I can see the Rocksmith cable, as it is a recorder).
  The vm will freeze up after a couple of seconds being in that menu.

  If I remove the USB device from my qemu command and go into my sound
  settings->record settings there are no freezing issues.

  The guest will however not freeze up while browsing through device
  manager and looking at the USB Rocksmith Cable from there.

  My host(Arch Linux) works fine while the host is frozen up.

  Is it reproducible?
  Yes, every time the USB device is passed through, the guest will at some point lock up while the USB device are used/polled.
  Tried with both USB 2.0 and USB 3.0 port with the same thing happening.

  Expected outcome:
  USB device works without freezing up the guest.

  Suggested solution(if at all possible):
  Somehow make the USB devices reconnect in the guest when the host is receiving the "ERROR Transfer event for disabled endpoint or incorrect stream ring" messages.
  Or make it so that the guest can never lock up while this happens.

  Information about USB Rocksmith Cable:
  The realtone guitar interface cable is really just a simple USB sound card which is seen as a USB microphone by a computer or console game system. This is actually identical to other 1/4″ to USB adapters such as the Behringer UCG102 Guitar to USB interface.

  If there is some more information you need, please do not hesitate to ask for it.
  Also, this is my first bug report so please be kind, I appreciate any feedback :)

  Technical Information:

  CPU: Intel(R) Core(TM) i7-4771 CPU @ 3.50GHz
  GPU: NVIDIA GTX 670, latest NVIDIA drivers installed in Windows.
  QEMU version: qemu-git 2.0.r31965.g63678e1-1
  Host Kernel: Linux 3.13.6-1-mainline x86_64
  Guest: Windows 8.1 Professional, fully updated as of 30th March 2014

  Qemu command line used:

  sudo -E qemu-system-x86_64 \
  -enable-kvm \
  -M q35 \
  -m 8G \
  -mem-path /dev/hugepages \
  -mem-prealloc \
  -cpu host \
  -smp 4,sockets=1,cores=4,threads=1 \
  -device vfio-pci,host=00:1b.0 \
  -bios /usr/share/qemu/bios.bin \
  -vga none \
  -device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
  -device vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
  -nographic \
  -device ahci,bus=pcie.0,id=ahci \
  -drive file=/var/lib/libvirt/images/Windows8.1.img,id=disk,format=raw,cache=none \
  -device ide-hd,bus=ahci.0,drive=disk \
  -device vfio-pci,host=00:19.0,bus=pcie.0 \
  -drive file=/dev/sdb1,id=mmo,format=raw,cache=none \
  -device ide-hd,bus=ahci.1,drive=mmo \
  -drive file=/home/thor/Windows/Windows-Steam.img,id=steam,format=raw,cache=none \
  -usb -usbdevice host:045e:028e \
  -usb -usbdevice host:12ba:00ff \
  -net none \
  -device ide-hd,bus=ahci.2,drive=steam

  Strace output in the seconds leading up to the freeze:
  See attachment .

  Journalctl output on the host while the guest froze:

  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe410 fff9f480 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe420 fff9f490 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe430 fff9f4a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe440 fff9f4b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe450 fff9f4c0 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe460 fff9f4d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe470 fff9f4e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe480 fff9f4f0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe490 fff9f500 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4a0 fff9f510 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4b0 fff9f520 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4c0 fff9f530 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4d0 fff9f540 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4e0 fff9f550 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe4f0 fff9f560 00000000 0d00000a 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe500 fff9f570 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe510 fff9f580 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe520 fff9f590 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe530 fff9f5a0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe540 fff9f5b0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe550 fff9f5c0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe560 fff9f5d0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe570 fff9f5e0 00000000 0d00000c 07058000
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: ERROR Transfer event for disabled endpoint or incorrect stream ring
  Apr 01 22:03:19 ultimaarch kernel: xhci_hcd 0000:00:14.0: @00000000ffffe580 fff9f5f0 00000000 0d00000c 07058000
  Apr 01 22:05:46 ultimaarch kernel: INFO: task qemu-system-x86:10006 blocked for more than 120 seconds.
  Apr 01 22:05:46 ultimaarch kernel:       Not tainted 3.13.6-1-mainline #1
  Apr 01 22:05:46 ultimaarch kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
  Apr 01 22:05:46 ultimaarch kernel: qemu-system-x86 D ffff88080126fab0     0 10006  10005 0x00000005
  Apr 01 22:05:46 ultimaarch kernel:  ffff88006fb81cf8 0000000000000086 ffff88053a409b00 ffff88006fb81fd8
  Apr 01 22:05:46 ultimaarch kernel:  0000000000014400 0000000000014400 ffff88053a409b00 ffffffff81219402
  Apr 01 22:05:46 ultimaarch kernel:  ffff880000000000 ffffffff81210000 0000000000000282 ffff88006fb81cb0
  Apr 01 22:05:46 ultimaarch kernel: Call Trace:
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81219402>] ? sysfs_addrm_finish+0xa2/0xc0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff81210000>] ? proc_pid_status+0x5b0/0x6e0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa019479c>] ? xhci_urb_dequeue+0x22c/0x360 [xhci_hcd]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff8138a0a7>] ? put_device+0x17/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff814f8b99>] schedule+0x29/0x70
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0010b9d>] usb_kill_urb+0x5d/0xa0 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff810a2c30>] ? __wake_up_sync+0x20/0x20
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa000f6e5>] usb_hcd_flush_endpoint+0xb5/0x180 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012459>] usb_disable_endpoint+0x59/0x90 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa00124d6>] usb_disable_interface+0x46/0x60 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa0012a04>] usb_set_interface+0x194/0x360 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001cc5b>] usbdev_do_ioctl+0xa0b/0x1050 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffffa001d2ce>] usbdev_ioctl+0xe/0x20 [usbcore]
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b6350>] do_vfs_ioctl+0x2e0/0x4c0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff811b65b1>] SyS_ioctl+0x81/0xa0
  Apr 01 22:05:46 ultimaarch kernel:  [<ffffffff815046ff>] tracesys+0xe1/0xe6

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1301047/+subscriptions

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-02-09  8:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-01 22:29 [Qemu-devel] [Bug 1301047] [NEW] Windows guest freezes after exiting an 3D application on guest zelluz
2014-04-02 22:44 ` [Qemu-devel] [Bug 1301047] " zelluz
2014-04-03  7:23 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using USB passthrough zelluz
2014-04-03  8:06 ` zelluz
2014-04-05  0:05 ` zelluz
2014-04-05  0:10 ` zelluz
2014-04-05  0:15 ` zelluz
2014-04-05  0:26 ` zelluz
2015-02-09  8:39 ` [Qemu-devel] [Bug 1301047] Re: Windows guest freezes while using passthrough on USB audio recorder zelluz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.