Received: from eggs.gnu.org ([208.118.235.92]:49729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USoYj-0005eE-1y for qemu-devel@nongnu.org; Thu, 18 Apr 2013 09:07:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USoYh-0001oG-Ka for qemu-devel@nongnu.org; Thu, 18 Apr 2013 09:07:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USoYh-0001o9-BF for qemu-devel@nongnu.org; Thu, 18 Apr 2013 09:07:27 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3ID7Q9R004110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 18 Apr 2013 09:07:26 -0400 From: Markus Armbruster References: <1366107190-30853-1-git-send-email-kraxel@redhat.com> <1366107190-30853-8-git-send-email-kraxel@redhat.com> Date: Thu, 18 Apr 2013 15:07:25 +0200 In-Reply-To: <1366107190-30853-8-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue, 16 Apr 2013 12:13:10 +0200") Message-ID: <87txn4t2b6.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 7/7] use libusb for usb-host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Gerd Hoffmann 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: =E2=80=98LIBUS= B_LOG_LEVEL_WARNING=E2=80=99 undeclared here (not in a function)