Re: [Qemu-devel] [PATCH 06/10] qdev: Implement (variable length) array properties

2013-02-18 Thread Peter Maydell
On 11 February 2013 14:38, Peter Maydell wrote: > On 4 February 2013 13:44, Peter Maydell wrote: >> Add support for declaring array properties for qdev devices. >> These work by defining an initial static property 'len-arrayname' >> which the user of the device should set to the desired size >> o

Re: [Qemu-devel] [PATCH 06/10] qdev: Implement (variable length) array properties

2013-02-11 Thread Peter Maydell
On 4 February 2013 13:44, Peter Maydell wrote: > Add support for declaring array properties for qdev devices. > These work by defining an initial static property 'len-arrayname' > which the user of the device should set to the desired size > of the array. When this property is set, memory is alloc

[Qemu-devel] [PATCH 06/10] qdev: Implement (variable length) array properties

2013-02-04 Thread Peter Maydell
Add support for declaring array properties for qdev devices. These work by defining an initial static property 'len-arrayname' which the user of the device should set to the desired size of the array. When this property is set, memory is allocated for the array elements, and dynamic properties "arr