[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host |
Date: |
Thu, 18 Apr 2013 15:07:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
Gerd Hoffmann <address@hidden> 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)
- [Qemu-devel] [PULL 0/7] usb patch queue, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 3/7] xhci: add xhci_cap_write, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 4/7] xhci: fix portsc writes, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 5/7] xhci: use slotid as device address, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 1/7] usb-serial: Remove double call to qemu_chr_add_handlers( NULL ), Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 2/7] xhci: remove leftover debug printf, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 6/7] xhci: fix address device, Gerd Hoffmann, 2013/04/16
- [Qemu-devel] [PATCH 7/7] use libusb for usb-host, Gerd Hoffmann, 2013/04/16
- Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host,
Markus Armbruster <=