From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Alexander Graf <agraf@suse.de>,
qemu-devel@nongnu.org, kvm-ppc@vger.kernel.org,
David Gibson <dwg@au1.ibm.com>
Subject: Re: [Qemu-devel] [PATCH] spapr: Add support for -vga option
Date: Thu, 15 Dec 2011 11:00:46 +1100 [thread overview]
Message-ID: <1323907246.21839.29.camel@pasglop> (raw)
In-Reply-To: <4EE9199F.80305@codemonkey.ws>
On Wed, 2011-12-14 at 15:48 -0600, Anthony Liguori wrote:
> > /* USB */
> > if (usb_enabled) {
> >
> usb_ohci_init_pci(QLIST_FIRST(&spapr->phbs)->host_state.bus, -1);
> > + if (spapr_has_graphics) {
> > + usbdevice_create("keyboard");
> > + usbdevice_create("mouse");
>
> It is better to use usb_create() and pass it the usb bus directly as
> this will make it easier to express this as composition down the road.
How do I do that ? usb_ohci_init_pci() doesn't appear to return
the USB bus....
Cheers,
Ben.
next prev parent reply other threads:[~2011-12-15 0:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 9:22 [Qemu-devel] [PATCH] spapr: Add support for -vga option Benjamin Herrenschmidt
2011-12-14 15:30 ` Paolo Bonzini
2011-12-14 20:04 ` Benjamin Herrenschmidt
2011-12-14 21:48 ` Anthony Liguori
2011-12-15 0:00 ` Benjamin Herrenschmidt [this message]
2011-12-15 0:10 ` Anthony Liguori
2011-12-23 5:36 ` Benjamin Herrenschmidt
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=1323907246.21839.29.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=agraf@suse.de \
--cc=anthony@codemonkey.ws \
--cc=dwg@au1.ibm.com \
--cc=kvm-ppc@vger.kernel.org \
--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).