[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/9] vmstate: Add a way to send a partial array
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 7/9] vmstate: Add a way to send a partial array |
Date: |
Thu, 10 Mar 2011 12:33:54 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/hw.h | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index c198ce8..9df1c2c 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -429,6 +429,15 @@ extern const VMStateInfo vmstate_info_unused_buffer;
.offset = vmstate_offset_sub_array(_state, _field, _type, _start), \
}
+#define VMSTATE_ARRAY_INT32_UNSAFE(_field, _state, _field_num, _info, _type) {\
+ .name = (stringify(_field)), \
+ .num_offset = vmstate_offset_value(_state, _field_num, int32_t), \
+ .info = &(_info), \
+ .size = sizeof(_type), \
+ .flags = VMS_VARRAY_INT32, \
+ .offset = offsetof(_state, _field), \
+}
+
#define VMSTATE_VARRAY_INT32(_field, _state, _field_num, _version, _info,
_type) {\
.name = (stringify(_field)), \
.version_id = (_version), \
--
1.7.4
- [Qemu-devel] Re: [PATCH 2/9] vmstate: Fix varrays with uint8 indexes, (continued)
[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, 2011/03/10
[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 <=
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