[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 6/8] vmstate: Add uint32 2D-array support
From: |
Christoffer Dall |
Subject: |
[Qemu-devel] [PATCH v5 6/8] vmstate: Add uint32 2D-array support |
Date: |
Tue, 28 Jan 2014 12:32:43 -0800 |
Add support for saving VMState of 2D arrays of uint32 values.
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Christoffer Dall <address@hidden>
---
include/migration/vmstate.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index be193ba..a106d51 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -656,9 +656,15 @@ extern const VMStateInfo vmstate_info_bitmap;
#define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) \
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t)
+#define VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, _v) \
+ VMSTATE_2DARRAY(_f, _s, _n1, _n2, _v, vmstate_info_uint32, uint32_t)
+
#define VMSTATE_UINT32_ARRAY(_f, _s, _n) \
VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0)
+#define VMSTATE_UINT32_2DARRAY(_f, _s, _n1, _n2) \
+ VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, 0)
+
#define VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) \
VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint64, uint64_t)
--
1.8.5.2
- [Qemu-devel] [PATCH v5 0/8] Support arm-gic-kvm save/restore, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 2/8] arm_gic: Fix GICD_ICPENDR and GICD_ISPENDR writes, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 1/8] arm_gic: Introduce define for GIC_NR_SGIS, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 3/8] arm_gic: Fix GIC pending behavior, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 4/8] hw: arm_gic: Keep track of SGI sources, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 5/8] arm_gic: Support setting/getting binary point reg, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 6/8] vmstate: Add uint32 2D-array support,
Christoffer Dall <=
- [Qemu-devel] [PATCH v5 7/8] arm_gic: Add GICC_APRn state to the GICState, Christoffer Dall, 2014/01/28
- [Qemu-devel] [PATCH v5 8/8] hw: arm_gic_kvm: Add KVM VGIC save/restore logic, Christoffer Dall, 2014/01/28
- Re: [Qemu-devel] [PATCH v5 0/8] Support arm-gic-kvm save/restore, Peter Maydell, 2014/01/29