Package: qemu-kvm
Version: 1:2.8+dfsg-3~bpo8+1

Hi,

When installing something from a Kingston USB stick (13fe:4100) via 
pass-through into a KVM guest, there's a never ending stream of USB 
resets on the host, which slows down USB access in the guest 
tremendously:

Jun 18 21:20:14 hitchhiker kernel: [ 1985.108140] usb 1-1: reset high-speed USB 
device number 7 using xhci_hcd

These repeat roughly once a second.

Here is the command line triggering the problem:

kvm -usb -device usb-host,hostbus=1,hostport=1 \
  -netdev user,id=net0 -device ne2k_pci,netdev=net0 \
  -m 2G  -drive file=$HOME/tmp/hda.img -boot menu=on

It was observed while trying to test an USB stick with the Debian 8.8.0 
netboot on it, called using the following grub paragraph:

menuentry 'debian-8.8.0-amd64-netinst' {
        linux /boot/iso/linux-netboot-debian-8.8.0-amd64
        initrd /boot/iso/initrd-netboot-debian-8.8.0-amd64.gz
}

USB resets start scrolling by shortly before the installer prompts to 
select the language for the installation process.

This happens with different USB sticks, although the exact behavior 
changes, with some other sticks (05e3:0749) it is preceded by the 
following messages:

Jun 18 17:50:14 hitchhiker kernel: [20577.554228] usb 2-1: Disable of 
device-initiated U1 failed.
Jun 18 17:50:14 hitchhiker kernel: [20577.557690] usb 2-1: Disable of 
device-initiated U2 failed.

... and often followed by:

Jun 18 17:50:14 hitchhiker kernel: [20578.042211] sd 6:0:0:0: [sdb] tag#0 
FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jun 18 17:50:14 hitchhiker kernel: [20578.042214] sd 6:0:0:0: [sdb] tag#0 Sense 
Key : Unit Attention [current] 
Jun 18 17:50:14 hitchhiker kernel: [20578.042216] sd 6:0:0:0: [sdb] tag#0 Add. 
Sense: Not ready to ready change, medium may have changed
Jun 18 17:50:14 hitchhiker kernel: [20578.042217] sd 6:0:0:0: [sdb] tag#0 CDB: 
Read(10) 28 00 00 ee 1f 70 00 00 10 00
Jun 18 17:50:14 hitchhiker kernel: [20578.042218] blk_update_request: I/O 
error, dev sdb, sector 15605616
Jun 18 17:50:14 hitchhiker kernel: [20578.261820]  sdb: sdb1



Any ideas what might be going on here?

Thanks,

Alain

Reply via email to