Re: [PATCH 3/3] qom: Simplify and merge pointer property getters/setters

2020-10-09 Thread Eric Blake
On 10/9/20 2:15 PM, Eduardo Habkost wrote: > Both the property getter and setter for pointer properties can > simply call the visitor functions directly, instead of making > extra copies and requiring additional logic. > > Remove the extra copying logic, and merge the getter and setter > functions

[PATCH 3/3] qom: Simplify and merge pointer property getters/setters

2020-10-09 Thread Eduardo Habkost
Both the property getter and setter for pointer properties can simply call the visitor functions directly, instead of making extra copies and requiring additional logic. Remove the extra copying logic, and merge the getter and setter functions in object_visit_uint*_ptr() accessors. Signed-off-by: