qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 03/14] qdev: add qdev_add_properties


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 03/14] qdev: add qdev_add_properties
Date: Tue, 01 May 2012 17:23:13 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 05/01/2012 05:12 PM, Paolo Bonzini wrote:
Il 02/05/2012 00:01, Anthony Liguori ha scritto:

There's magic in the qdev layer now to decide whether a Property in the
array of properties becomes a legacy or static property (it's only ever
exposed as one type).

I don't think this is true: a legacy property always has a static
counterpart.  The magic (really just a fallback) is to decide whether
-device<type>,<prop>=<value>  will use the legacy property or a string
visitor + a static property.

Yes, I mispoke. All legacy properties are static properties but not all static properties are legacy (IIUC).

The exception is PROP_PTR which is always a legacy but never a static.

So there is quite a bit of magic.

Regards,

Anthony Liguori


Paolo





reply via email to

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