diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2016-06-01 18:57:32 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-06-07 10:17:45 +1000 |
commit | 705124ea6dca3ebfa13afddac9ce9475caf981a6 (patch) | |
tree | 4949467977519c56d16f8899a9b08b191be29899 /include/hw/ppc | |
parent | 44f2e6c10eb2bf5dc3e36372ed574f71e80dba30 (diff) | |
download | qemu-705124ea6dca3ebfa13afddac9ce9475caf981a6.zip qemu-705124ea6dca3ebfa13afddac9ce9475caf981a6.tar.gz qemu-705124ea6dca3ebfa13afddac9ce9475caf981a6.tar.bz2 |
vmstate: Define VARRAY with VMS_ALLOC
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_ALLOC
flag which tells the receiving side to allocate memory for the array
before receiving the data.
The first user of it is a dynamic DMA window which existence and size
are totally dynamic.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
0 files changed, 0 insertions, 0 deletions