[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/9] vmstate: add VMSTATE_STRUCT_VARRAY_UINT32
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 6/9] vmstate: add VMSTATE_STRUCT_VARRAY_UINT32 |
Date: |
Thu, 10 Mar 2011 12:33:53 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/hw.h | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index d801694..c198ce8 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), \
--
1.7.4
- [Qemu-devel] [PATCH 0/9] VMState infrastructure, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 1/9] vmstate: add VMSTATE_UINT32_EQUAL, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 3/9] vmstate: add UINT32 VARRAYS, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 5/9] vmstate: add VMSTATE_INT64_ARRAY, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 4/9] vmstate: add VMSTATE_STRUCT_VARRAY_INT32, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 6/9] vmstate: add VMSTATE_STRUCT_VARRAY_UINT32,
Juan Quintela <=
- [Qemu-devel] [PATCH 8/9] vmstate: be able to store/save a pci device from a pointer, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 9/9] vmstate: move timers to use test instead of version, Juan Quintela, 2011/03/10
- [Qemu-devel] [PATCH 7/9] vmstate: Add a way to send a partial array, Juan Quintela, 2011/03/10
- Re: [Qemu-devel] [PATCH 0/9] VMState infrastructure, Anthony Liguori, 2011/03/10
- Re: [Qemu-devel] [PATCH 0/9] VMState infrastructure, Anthony Liguori, 2011/03/10