From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49044) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkKja-0008RH-89 for qemu-devel@nongnu.org; Wed, 05 Jun 2013 16:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkKjZ-0007j6-2l for qemu-devel@nongnu.org; Wed, 05 Jun 2013 16:55:06 -0400 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:32358 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkKjY-0007eQ-UN for qemu-devel@nongnu.org; Wed, 05 Jun 2013 16:55:05 -0400 Message-ID: <51AFA4D7.4080700@comstyle.com> Date: Wed, 05 Jun 2013 16:51:35 -0400 From: Brad Smith MIME-Version: 1.0 References: <51AF9CBE.2030800@msgid.tls.msk.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] kFreeBSD and USB support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ed Maste Cc: Michael Tokarev , qemu-devel On 05/06/13 4:34 PM, Ed Maste wrote: > On 5 June 2013 16:17, Michael Tokarev wrote: >> Hello. >> >> On debian we, for a long time, used the following hack >> in a build script of qemu: >> >> # Hack alert. qemu-1.3 still needs this. >> # On recent kFreebsd, old USB host API has been removed, >> # but qemu did not learn to use new USB API. >> # Just do not build USB host support. >> sed -i 's/^HOST_USB=bsd/HOST_USB=stub/' \ >> qemu-build/config-host.mak > > In fact, the FreeBSD ports tree Makefile for QEMU does basically the > same thing -- search for 'HOST_USB' in > http://svnweb.freebsd.org/ports/head/emulators/qemu-devel/Makefile?revision=319450&view=co > >> This isn't really FreeBSD but "kFreeBSD", which is >> a FreeBSD kernel (and ofcorse the kernel headers) >> and some more linux-like userspace - it is Debian >> userspace running on top of FreeBSD kernel. >> >> This effectively disables host usb support for >> kFreeBSD. And since I guess the kernel headers >> are the same on regular FreeBSD, I think the same >> issue happens on regular FreeBSD too, that is, >> host usb does not work there as well. >> >> What is the status of this situation now? > > On FreeBSD-current libusb has grown the functionality required by > QEMU's recent libusb USB host code, and I'm using that. I assume that > the current BSD host USB code works on NetBSD and OpenBSD, but don't > really know; possibly they can switch to libusb as well. AFAIK the BSD USB backend is supposed to work on OpenBSD, though I have never used that support myself never having used USB within an image under QEMU. But when libusb 1.0.16 is released and into our ports tree I'll look into enabling the libusb support. The libusb USB backend for OpenBSD is relatively well maintained and I'd trust that working properly over the code within QEMU. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.