qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] kFreeBSD and USB support


From: Brad Smith
Subject: Re: [Qemu-devel] kFreeBSD and USB support
Date: Wed, 05 Jun 2013 16:51:35 -0400
User-agent: Mozilla/5.0 (Macintosh; PPC Mac OS X 10.5; rv:17.0) Gecko/20130513 Thunderbird/17.0.6 TenFourFox/Debugging

On 05/06/13 4:34 PM, Ed Maste wrote:
On 5 June 2013 16:17, Michael Tokarev <address@hidden> 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.




reply via email to

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