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.


Anthony Liguori


Reply via email to