qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] usb-storage assertions
@ 2016-01-09 17:34 Andrey Korolyov
  2016-01-12 14:17 ` Gerd Hoffmann
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Korolyov @ 2016-01-09 17:34 UTC (permalink / raw)
  To: qemu-devel@nongnu.org; +Cc: hdegoede, Gerd Hoffmann

Hello,

during regular operations within linux guest with USB EHCI frontend I
am seeing process crashes with an assert during regular operations
like dpkg install:

hw/usb/dev-storage.c:334: usb_msd_handle_reset: Assertion `s->req ==
((void *)0)' failed.

This does happen when real block backend is an USB-attached device
itself, so we are hitting some subtle race right there, because a
single change of a backend to a raw file sitting on SSD has never
triggered this block with the linux guest (but xBSD pre-reboot flush
would trigger assertion from time to time in the usb_cancel_packet()
without regarding physical backend type:

hw/usb/core.c:508: usb_cancel_packet: Assertion
`usb_packet_is_inflight(p)' failed.
)

Since the 2.2.0 which I am running is not exactly freshest one, I
could re-check with master today or tomorrow, but log for hw/usb/ has
no related commits for intentional fixes over one or another issue.

Argument set to check:
-device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 -device
ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,addr=0x6
-device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1
-device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2
-drive file=/dev/sdb,if=none,id=drive-usb-disk0,format=raw -device
usb-storage,drive=drive-usb-disk0,id=usb-disk0,removable=off

Thanks for looking into this!

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

end of thread, other threads:[~2016-01-19 14:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-09 17:34 [Qemu-devel] usb-storage assertions Andrey Korolyov
2016-01-12 14:17 ` Gerd Hoffmann
2016-01-12 14:36   ` Kevin Wolf
2016-01-12 14:56     ` Daniel P. Berrange
2016-01-13 16:13       ` Gerd Hoffmann
2016-01-13 16:28         ` Andrey Korolyov
2016-01-15 18:08           ` Andrey Korolyov
2016-01-18  9:38             ` Gerd Hoffmann
2016-01-18  9:50               ` Andrey Korolyov
2016-01-18 13:55                 ` Gerd Hoffmann
2016-01-18 23:49                   ` Andrey Korolyov
2016-01-19  7:13                     ` Gerd Hoffmann
2016-01-19 10:59                       ` Andrey Korolyov
2016-01-19 11:44                         ` Gerd Hoffmann
2016-01-19 14:19                     ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).