All of lore.kernel.org
 help / color / mirror / Atom feed
* Help with usb-host hostdevice property
@ 2020-08-26 20:00 Diego Viola
  2020-08-27  8:00 ` Gerd Hoffmann
  0 siblings, 1 reply; 3+ messages in thread
From: Diego Viola @ 2020-08-26 20:00 UTC (permalink / raw)
  To: kraxel, qemu-devel

Hi,

I'm trying to use the new usb-host hostdevice property that was added here:

https://git.qemu.org/?p=qemu.git;a=commit;h=9f815e83e983d247a3cd67579d2d9c1765adc644

This is the command line that I am using:

qemu-system-x86_64 -enable-kvm -hda arch-zoom.qcow2 -m 4G -device
qemu-xhci,id=xhci -device
usb-host,bus=xhci.0,hostdevice=/dev/bus/usb/002/004 -device intel-hda
-device hda-duplex -vga virtio

My user has permissions to access /dev/bus/usb/002/004 -- I am trying
to pass-through this device:

Bus 002 Device 004: ID 04f2:b449 Chicony Electronics Co., Ltd Integrated Camera

When I boot up the guest I get this:

usb 1-1: Invalid ep0 maxpacket: 64
usb usb1-port1: unable to enumerate USB device

This works though:

qemu-system-x86_64 -enable-kvm -hda arch-zoom.qcow2 -m 4G -device
qemu-xhci,id=xhci -device
usb-host,bus=xhci.0,vendorid=0x04f2,productid=0xb449 -device intel-hda
-device hda-duplex -vga virtio

I am using QEMU 5.1.0 on Arch Linux.

Arch Linux is running on the guest as well as on the host.

Any ideas what I'm doing wrong here please?

Thanks,
Diego


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

* Re: Help with usb-host hostdevice property
  2020-08-26 20:00 Help with usb-host hostdevice property Diego Viola
@ 2020-08-27  8:00 ` Gerd Hoffmann
  2020-08-27  9:54   ` Diego Viola
  0 siblings, 1 reply; 3+ messages in thread
From: Gerd Hoffmann @ 2020-08-27  8:00 UTC (permalink / raw)
  To: Diego Viola; +Cc: qemu-devel

  Hi,

> usb 1-1: Invalid ep0 maxpacket: 64
> usb usb1-port1: unable to enumerate USB device

https://patchwork.ozlabs.org/project/qemu-devel/patch/20200826145239.6077-18-kraxel@redhat.com/

HTH,
  Gerd



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

* Re: Help with usb-host hostdevice property
  2020-08-27  8:00 ` Gerd Hoffmann
@ 2020-08-27  9:54   ` Diego Viola
  0 siblings, 0 replies; 3+ messages in thread
From: Diego Viola @ 2020-08-27  9:54 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On Thu, Aug 27, 2020 at 5:01 AM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
>   Hi,
>
> > usb 1-1: Invalid ep0 maxpacket: 64
> > usb usb1-port1: unable to enumerate USB device
>
> https://patchwork.ozlabs.org/project/qemu-devel/patch/20200826145239.6077-18-kraxel@redhat.com/

That helps indeed, thanks Gerd!

Tested-by: Diego Viola <diego.viola@gmail.com>

>
> HTH,
>   Gerd
>

Diego


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

end of thread, other threads:[~2020-08-27  9:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26 20:00 Help with usb-host hostdevice property Diego Viola
2020-08-27  8:00 ` Gerd Hoffmann
2020-08-27  9:54   ` Diego Viola

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.