qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host
Date: Mon, 22 Apr 2013 17:57:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

Am 18.04.2013 15:07, schrieb Markus Armbruster:
> 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)

Same on openSUSE 12.3 (1.0.9-5.1.1) - any fix cooking for this, Gerd?

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]