Re: [Qemu-devel] [PATCH 2/6] qom: Allow to make integer qom properties writeable

2014-07-02 Thread Alexander Graf
On 02.07.14 05:48, Peter Crosthwaite wrote: On Wed, Jul 2, 2014 at 7:49 AM, Alexander Graf wrote: We have helper functions to easily expose integers as QOM object properties. However, these are read only. I think this is a good idea, and _ptr properties should have some write-ability. Let's

Re: [Qemu-devel] [PATCH 2/6] qom: Allow to make integer qom properties writeable

2014-07-01 Thread Peter Crosthwaite
On Wed, Jul 2, 2014 at 7:49 AM, Alexander Graf wrote: > We have helper functions to easily expose integers as QOM object properties. > However, these are read only. I think this is a good idea, and _ptr properties should have some write-ability. > Let's introduce some easy helpers that would > j

[Qemu-devel] [PATCH 2/6] qom: Allow to make integer qom properties writeable

2014-07-01 Thread Alexander Graf
We have helper functions to easily expose integers as QOM object properties. However, these are read only. Let's introduce some easy helpers that would just write to the values. We also add a new parameter to the property registration that allows us to specify the setter function. If we need speci