kvm husb: ctrl buffer too small
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu-kvm (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Lucid |
Won't Fix
|
Medium
|
Unassigned | ||
Maverick |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
SRU justification:
1. Impact: USB devices which use large control buffers (like some PDAs) cannot be used with a VM.
2. How bug was addressed: A one-line patch was taken from upstream, increasing the size of the control buffer.
3. patch: see patch in the description
4. TEST CASE: connect a usb device which uses control buffers > 2k.
5. Regression potential: the size of a buffer is increased, with no other changes. The only potential for regression, therefore, would be due to kvm consuming more memory.
Binary package hint: qemu-kvm
I would like to connect my PDA to kvm virtual machine with the following command:
kvm -m 1024 -k hu -usb --usbdevice host:2.4 VM.img
It finds my USB device, but after throws:
husb: 2 interfaces claimed for configuration 1
husb: grabbed usb device 2.4
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: config #1 need 1
husb: 2 interfaces claimed for configuration 1
husb: ctrl buffer too small (4104 > 2048)
VM starts but without USB device. :-(
I've found similar problem on Redhat bugs, and they solved it with a patch.
https:/
thx
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: kvm 1:84+dfsg-
ProcVersionSign
Uname: Linux 2.6.32-30-generic i686
Architecture: i386
Date: Mon May 30 11:56:40 2011
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
Lsusb:
Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
Bus 002 Device 002: ID 046d:c05f Logitech, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc Dimension E521
ProcCmdLine: root=/dev/md1 ro quiet splash
ProcEnviron:
LANGUAGE=hu_HU:en
PATH=(custom, user)
LANG=hu_HU.utf8
SHELL=/bin/bash
SourcePackage: qemu-kvm
dmi.bios.date: 04/07/2007
dmi.bios.vendor: Dell Inc
dmi.bios.version: 1.1.6
dmi.board.name: 0UW457
dmi.board.vendor: Dell Inc
dmi.board.version: A03
dmi.chassis.type: 3
dmi.chassis.vendor: Dell Inc
dmi.modalias: dmi:bvnDellInc:
dmi.product.name: Dimension E521
dmi.sys.vendor: Dell Inc
Changed in qemu-kvm (Ubuntu Maverick): | |
status: | New → In Progress |
importance: | Undecided → Medium |
description: | updated |
tags: | added: testcase |
Thanks for the bug report. Can you see if its fixed in natty so we can probably backport this?
chuck