qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] a4055d: nec-usb-xhci: set the device state to


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] a4055d: nec-usb-xhci: set the device state to USB_STATE_DE...
Date: Tue, 12 Jul 2016 05:00:05 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: a4055d85863be76a5fb70ecd001e7db5bc6bd5cb
      
https://github.com/qemu/qemu/commit/a4055d85863be76a5fb70ecd001e7db5bc6bd5cb
  Author: Zhang Shuaiyi <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M hw/usb/hcd-xhci.c

  Log Message:
  -----------
  nec-usb-xhci: set the device state to USB_STATE_DEFAULT

This patch is a rough fix to "hw/usb/core.c:401: usb_handle_packet:
 Assertion `dev->state == 3' failed.". Qemu will crash when a usb3
device redirect to Windows7 VM via nec-usb-xhci.

In extensible-host-controler-interface-usb-xhci.pdf P94(4.6.5
Address Device):
    • If the Block Set Address Request (BSR) flag = ‘1’
  • If the slot is in the Enabled state:
      ...
      • Set the Slot State in the Output Slot Context to Default.

BSR = ‘1’: Enabled state to Default state; BSR = ‘0’: Default state
to Addressed state. Try to call usb_device_reset to set device state
to USB_STATE_DEFAULT in xhci_address_slot wether bsr is zero.

Signed-off-by: Zhang Shuaiyi <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: b91e013982e8bd44833974128f1581e427082880
      
https://github.com/qemu/qemu/commit/b91e013982e8bd44833974128f1581e427082880
  Author: Gerd Hoffmann <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M docs/usb-storage.txt

  Log Message:
  -----------
  usb: add storage hotplug documentation

Suggested-by: Paolo Bonzini <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
Message-id: address@hidden


  Commit: 042ec47e6825cbea67b9ad957780204dc1d346bc
      
https://github.com/qemu/qemu/commit/042ec47e6825cbea67b9ad957780204dc1d346bc
  Author: Anthony PERARD <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M hw/usb/xen-usb.c

  Log Message:
  -----------
  xen-usb: Fix 32bit build

Signed-off-by: Anthony PERARD <address@hidden>
Reviewed-by: Juergen Gross <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: c1ac514a0444cae0a822dd9a0e60ac77918c102c
      
https://github.com/qemu/qemu/commit/c1ac514a0444cae0a822dd9a0e60ac77918c102c
  Author: Peter Maydell <address@hidden>
  Date:   2016-07-12 (Tue, 12 Jul 2016)

  Changed paths:
    M docs/usb-storage.txt
    M hw/usb/hcd-xhci.c
    M hw/usb/xen-usb.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-20160712-1' into 
staging

usb: misc fixes.

# gpg: Signature made Tue 12 Jul 2016 09:47:21 BST
# gpg:                using RSA key 0x4CB6D8EED3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg:                 aka "Gerd Hoffmann <address@hidden>"
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>"
# Primary key fingerprint: A032 8CFF B93A 17A7 9901  FE7D 4CB6 D8EE D3E8 7138

* remotes/kraxel/tags/pull-usb-20160712-1:
  xen-usb: Fix 32bit build
  usb: add storage hotplug documentation
  nec-usb-xhci: set the device state to USB_STATE_DEFAULT

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/494edbf0b499...c1ac514a0444

reply via email to

[Prev in Thread] Current Thread [Next in Thread]