Add VMSTATE_STRUCT_VARRAY_KNOWN
commit2cf0148674430b6693c60d42b7eef721bfa9509f
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 6 Jan 2016 12:23:38 +0000 (6 12:23 +0000)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 9 Jan 2016 21:20:20 +0000 (9 23:20 +0200)
tree83d6fe334b6790836919096c656790fcc51f2f95
parent424e4a87d20027acf52e65f322a2100460162a49
Add VMSTATE_STRUCT_VARRAY_KNOWN

At the moment we have VMSTATE_STRUCT_ARRAY that requires
the field is declared as an array of fixed size.
We also have VMSTATE_STRUCT_VARRAY_UINT* that allows
a field declared as a pointer, but requires that the length
is a field member in the structure being loaded/saved.

VMSTATE_STRUCT_VARRAY_KNOWN is for arrays defined as pointers
yet we somehow know the length of.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
include/migration/vmstate.h