qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Brad Smith <brad@comstyle.com>
To: Ed Maste <emaste@freebsd.org>
Cc: Michael Tokarev <mjt@tls.msk.ru>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] kFreeBSD and USB support
Date: Wed, 05 Jun 2013 16:51:35 -0400	[thread overview]
Message-ID: <51AFA4D7.4080700@comstyle.com> (raw)
In-Reply-To: <CAPyFy2ARuM4n1OC7mwJte9hBe=EH-GG-8Bf6XY5pdaiOjf=hZQ@mail.gmail.com>

On 05/06/13 4:34 PM, Ed Maste wrote:
> On 5 June 2013 16:17, Michael Tokarev <mjt@tls.msk.ru> 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	other threads:[~2013-06-05 20:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05 20:17 [Qemu-devel] kFreeBSD and USB support Michael Tokarev
2013-06-05 20:27 ` Andreas Färber
2013-06-05 20:34 ` Ed Maste
2013-06-05 20:51   ` Brad Smith [this message]
2013-06-06 12:47 ` Gerd Hoffmann
2013-06-06 15:08   ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51AFA4D7.4080700@comstyle.com \
    --to=brad@comstyle.com \
    --cc=emaste@freebsd.org \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).