summaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-03-10 12:33:53 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-03-10 16:12:26 -0600
commit1283da72731c3704745e8dc7d6cc45f60e58556d (patch)
tree958c1b3829447391c25228ab614d02a7eb6c586b /hw/hw.h
parent15c6a56e9555dbe588a106d7891bed8ddc5b0650 (diff)
downloadqemu-1283da72731c3704745e8dc7d6cc45f60e58556d.tar.gz
qemu-1283da72731c3704745e8dc7d6cc45f60e58556d.tar.bz2
qemu-1283da72731c3704745e8dc7d6cc45f60e58556d.zip
vmstate: add VMSTATE_STRUCT_VARRAY_UINT32
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r--hw/hw.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index d80169441d..c198ce8afa 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -539,6 +539,16 @@ extern const VMStateInfo vmstate_info_unused_buffer;
.offset = offsetof(_state, _field), \
}
+#define VMSTATE_STRUCT_VARRAY_UINT32(_field, _state, _field_num, _version, _vmsd, _type) { \
+ .name = (stringify(_field)), \
+ .num_offset = vmstate_offset_value(_state, _field_num, uint32_t), \
+ .version_id = (_version), \
+ .vmsd = &(_vmsd), \
+ .size = sizeof(_type), \
+ .flags = VMS_STRUCT|VMS_VARRAY_UINT32, \
+ .offset = offsetof(_state, _field), \
+}
+
#define VMSTATE_STATIC_BUFFER(_field, _state, _version, _test, _start, _size) { \
.name = (stringify(_field)), \
.version_id = (_version), \