Re: [Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-06-01 Thread David Gibson
On Wed, Jun 01, 2016 at 10:11:05AM +0200, Paolo Bonzini wrote: > > > On 01/06/2016 04:29, Alexey Kardashevskiy wrote: > > On 27/05/16 17:54, Alexey Kardashevskiy wrote: > >> On 04/05/16 16:52, Alexey Kardashevskiy wrote: > >>> This allows dynamic allocation for migrating arrays. > >>> > >>> Alrea

Re: [Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-06-01 Thread Paolo Bonzini
On 01/06/2016 04:29, Alexey Kardashevskiy wrote: > On 27/05/16 17:54, Alexey Kardashevskiy wrote: >> On 04/05/16 16:52, Alexey Kardashevskiy wrote: >>> This allows dynamic allocation for migrating arrays. >>> >>> Already existing VMSTATE_VARRAY_UINT32 requires an array to be >>> pre-allocated, ho

Re: [Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-05-31 Thread Alexey Kardashevskiy
On 27/05/16 17:54, Alexey Kardashevskiy wrote: > On 04/05/16 16:52, Alexey Kardashevskiy wrote: >> This allows dynamic allocation for migrating arrays. >> >> Already existing VMSTATE_VARRAY_UINT32 requires an array to be >> pre-allocated, however there are cases when the size is not known in >> adv

Re: [Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-05-27 Thread Alexey Kardashevskiy
On 04/05/16 16:52, Alexey Kardashevskiy wrote: > This allows dynamic allocation for migrating arrays. > > Already existing VMSTATE_VARRAY_UINT32 requires an array to be > pre-allocated, however there are cases when the size is not known in > advance and there is no real need to enforce it. > > Th

[Qemu-devel] [PATCH qemu v16 04/19] vmstate: Define VARRAY with VMS_ALLOC

2016-05-04 Thread Alexey Kardashevskiy
This allows dynamic allocation for migrating arrays. Already existing VMSTATE_VARRAY_UINT32 requires an array to be pre-allocated, however there are cases when the size is not known in advance and there is no real need to enforce it. This defines another variant of VMSTATE_VARRAY_UINT32 with WMS_