Gerd Hoffmann <kra...@redhat.com> writes:

> Reimplement usb-host on top of libusb.
> Reasons to do this:
>
>  (1) Largely rewritten from scratch, nice opportunity to kill historical
>      cruft.
>  (2) Offload usbfs handling to libusb.
>  (3) Have a single portable code base instead of bsd + linux variants.
>  (4) Bring usb-host support to any platform supported by libusbx.
>
> For now this goes side-by-side to the existing code.  That is only to
> simplify regression testing though, at the end of the day I want remove
> the old code and support libusb exclusively.  Merge early in 1.5 cycle,
> remove the old code after 1.5 release or something like this.
>
> Thanks to qdev the old and new code can coexist nicely on linux.  Just
> use "-device usb-host-linux" to use the old linux driver instead of the
> libusb one (which takes over the "usb-host" name).
>
> The bsd driver isn't qdev'ified so it isn't that easy for bsd.
> I didn't bother making it runtime switchable, so you have to rebuild
> qemu with --disable-libusb to get back the old code.

Breaks the build for me (Fedora 17's libusb1-devel-1.0.9-0.6.rc1):

  CC    hw/usb/host-libusb.o
/home/armbru/work/qemu/hw/usb/host-libusb.c:1254:217: error: 
‘LIBUSB_LOG_LEVEL_WARNING’ undeclared here (not in a function)

Reply via email to