Re: [Qemu-devel] [PATCH v2 14/27] qdev: allow reusing get/set for legacy property

2012-02-06 Thread Anthony Liguori
On 02/04/2012 02:02 AM, Paolo Bonzini wrote: In some cases, a legacy property does need a special print method but not a special parse method. In this case, we can reuse the get/set from the static (non-legacy) property. If neither parse nor print is needed, though, do not register the legacy

[Qemu-devel] [PATCH v2 14/27] qdev: allow reusing get/set for legacy property

2012-02-04 Thread Paolo Bonzini
In some cases, a legacy property does need a special print method but not a special parse method. In this case, we can reuse the get/set from the static (non-legacy) property. If neither parse nor print is needed, though, do not register the legacy property at all. The previous patch ensures