[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [RfC PATCH] qdev: rework device properties.
From: |
Juan Quintela |
Subject: |
[Qemu-devel] Re: [RfC PATCH] qdev: rework device properties. |
Date: |
Tue, 30 Jun 2009 16:03:28 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) |
Gerd Hoffmann <address@hidden> wrote:
> Early RfC patch. Not functional yet. Just for comments right now.
>
> Overall plan:
> * drop property lists. The properties are saved directly in the
> device state structs instead.
> * drop qdev_get_prop* functions, not needed any more.
> * replace qdev_set_prop* functions by qdev_prop_{parse,set*}.
>
> Done:
> * added code to handle properties.
>
> Todo:
> * convert all the device drivers.
> * actually drop the old functions.
Any good reason why you remove the list of propierties?
What I want to do, to make usb modular I need two things:
a- a way to defino an alias, that "mouse" is equivalent to "QEMU USB
Keyboard". One is the qdev name and the other is the name passed to
--usbdevice name.
b- things like disk are composed of:
"disk" : "rest of disk arguments"
My plan was to add both of them as properties or similar. Any better
idea? I can put it in one struct or similar, but it is not trivial
to find where to put things really, because the "mouse" part is
filled in usb-hid.c or equivalent, and the "disk" arguments part is
filled in vl.c
Later, Juan.