Re: [Qemu-devel] [PATCH 07/16] qdev: allow reusing get/set for legacy property

2012-02-03 Thread Paolo Bonzini
On 02/02/2012 11:38 PM, Andreas Färber wrote: Am 02.02.2012 17:45, schrieb 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

[Qemu-devel] [PATCH 07/16] qdev: allow reusing get/set for legacy property

2012-02-02 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

Re: [Qemu-devel] [PATCH 07/16] qdev: allow reusing get/set for legacy property

2012-02-02 Thread Andreas Färber
Am 02.02.2012 17:45, schrieb 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