Your message dated Mon, 19 Jun 2017 10:27:06 +0300
with message-id <7d503ec7-6be5-49b7-a9eb-80748de2d...@msgid.tls.msk.ru>
and subject line Re: Bug#865036: Installing something into a KVM guest via 
pass-thru USB triggers USB resets on host, slows down guest
has caused the Debian Bug report #865036,
regarding Installing something into a KVM guest via pass-thru USB triggers USB 
resets on host, slows down guest
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
865036: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865036
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
18.06.2017 22:32, Alain Knaff wrote:
> 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

Please either use regular block device or high-speed usb
pass-thru (ehci or better xhci).

THis is how most high-speed usb devices works, you can't
talk usb1 protocol with a device which is connected to
usb3 bus.

Thanks,

/mjt

--- End Message ---

Reply via email to