From: Gerd Hoffmann <kraxel@redhat.com>
To: Juan Quintela <quintela@trasno.org>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH 4/9] qdev/usb: make qemu aware of usb busses.
Date: Mon, 31 Aug 2009 15:31:42 +0200 [thread overview]
Message-ID: <4A9BD0BE.6040105@redhat.com> (raw)
In-Reply-To: <m34oro5ezg.fsf@neno.mitica>
On 08/31/09 14:45, Juan Quintela wrote:
>> pc-bios/bios.bin | Bin 131072 -> 131072 bytes
>
> Do you really wanted to include this?
Oops, no. Probably committed by mistake via 'git commit -a'
>> +static struct {
>> + const char *name;
>> + const char *qdev;
>> +} usbdevs[] = {
>> + {
>> + .name = "mouse",
>> + .qdev = "QEMU USB Mouse",
>> + },{
>> + .name = "tablet",
>> + .qdev = "QEMU USB Tablet",
> We don't want this table here, we want to be able to compile out
> table/mouse/disk/... And to get that compiled out, vl.c shouldn't have
> any knowled of what goes here.
Hmm. That isn't easy to do for the -usbdevice legacy handling ...
>> + /* simple devices which don't need extra care */
>> + for (i = 0; i< ARRAY_SIZE(usbdevs); i++) {
>> + if (strcmp(devname, usbdevs[i].name) != 0)
>> + continue;
>
> This function should be take care in global function.
parse error. --verbose please.
> I think we really need a way to pass the extra parameters to
> usb_create_simple
No. Cases where usb_create_simple() doesn't work are handled via
usb_create();
/* set properties here */
qdev_init();
in the -usbdevice legacy path. When creating devices via -device you'll
specify the properties directly on the command line instead. Last patch
of the series shows this for usb-msd.
There are some usb devices which are not yet fully converted, i.e.
parameters can't be passed via properties. This needs more work.
cheers,
Gerd
next prev parent reply other threads:[~2009-08-31 13:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-31 12:23 [Qemu-devel] [PATCH 0/9] qdev: usb + scsi support Gerd Hoffmann
2009-08-31 12:23 ` [Qemu-devel] [PATCH 1/9] allow passing null machine pointer to drive_init() Gerd Hoffmann
2009-08-31 12:23 ` [Qemu-devel] [PATCH 2/9] qdev: add error message to qdev_device_add() Gerd Hoffmann
2009-08-31 12:23 ` [Qemu-devel] [PATCH 3/9] qdev/usb: add usb bus support to qdev, convert drivers Gerd Hoffmann
2009-08-31 12:24 ` [Qemu-devel] [PATCH 4/9] qdev/usb: make qemu aware of usb busses Gerd Hoffmann
[not found] ` <m34oro5ezg.fsf@neno.mitica>
2009-08-31 13:31 ` Gerd Hoffmann [this message]
2009-08-31 12:24 ` [Qemu-devel] [PATCH 5/9] qdev/usb: add some convinience aliases Gerd Hoffmann
2009-08-31 12:24 ` [Qemu-devel] [PATCH 6/9] qdev/usb: convert uhci Gerd Hoffmann
2009-08-31 12:24 ` [Qemu-devel] [PATCH 7/9] qdev/usb: convert ohci Gerd Hoffmann
2009-08-31 12:24 ` [Qemu-devel] [PATCH 8/9] qdev/scsi: add scsi bus support to qdev, convert drivers Gerd Hoffmann
2009-08-31 12:24 ` [Qemu-devel] [PATCH 9/9] qdev/scsi+usb: convert usb-storage to qdev Gerd Hoffmann
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=4A9BD0BE.6040105@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@trasno.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).