From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkZb6-0004Xz-SK for qemu-devel@nongnu.org; Thu, 06 Jun 2013 08:47:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkZb1-0000pS-9L for qemu-devel@nongnu.org; Thu, 06 Jun 2013 08:47:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:8739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkZb1-0000mQ-0F for qemu-devel@nongnu.org; Thu, 06 Jun 2013 08:47:15 -0400 Message-ID: <51B084C8.1000204@redhat.com> Date: Thu, 06 Jun 2013 14:47:04 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <51AF9CBE.2030800@msgid.tls.msk.ru> In-Reply-To: <51AF9CBE.2030800@msgid.tls.msk.ru> Content-Type: text/plain; charset=UTF-8 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: Michael Tokarev Cc: Ed Maste , qemu-devel Hi, > 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? I have no idea how well the host-bsd code actually works. I've used an OpenBSD (virtual machine) for build tests. Last time I tried it did not build on FreeBSD. No idea where NetBSD (or any other variant) stands. My long-term plan for usb-host support is to build on libusbx exclusively (merged in the 1.5 devel cycle), thereby offloading all portability issues to libusbx. Right now we are in a transition period, the old code is still around so you can flip back and forward between libusbx implementation and the os-specific bits for linux/bsd, mainly because a pretty recent linusbx version is required and also to ease regression testing. At some point in the future I want get rid of the old code though. FreeBSD reportly has its own libusb implementation, with a library interface compatible to libusbx. That should work with kFreeBSD too. I don't know what the other BSD variants are doing, but due to libusbx being used by alot of userspace usb apps/drivers I'd expect it is present in some form usable for qemu's host-libusb code ... cheers, Gerd