qemu-devel
[Top][All Lists]
Advanced

[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:49:09 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)

Paul Brook <address@hidden> wrote:
>> 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.
>
> I'm not too bothered about this. We're changing the option, so I don't see 
> any 
> particular problem with changing the device names at the same time.

backward compatibility?  Not that I care about this one really.

>> 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
>
> I think this is confusing host configuration with machine configuration. This 
> has been discussed before.

Yes, but it is the same problem. We are going to need something like:

-usb-hardawre name=bar,... -usbdevice disk:name=bar

or anything like that, the thing that I mean is that disk is going to
have always a parameter (what disk we mean) and mouse is not going
(necesarely)

Later, Juan.




reply via email to

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