aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-10 03:04:47 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-11 11:10:09 -0500
commit7e72abc382b700a72549e8147bdea413534eeedc (patch)
tree9e4dccfb88d7458ab3dc0ef8c6a872c75f542fc1 /hw/hw.h
parent747791f11a975b412291056861559dd666f0f869 (diff)
downloadqemu-7e72abc382b700a72549e8147bdea413534eeedc.zip
qemu-7e72abc382b700a72549e8147bdea413534eeedc.tar.gz
qemu-7e72abc382b700a72549e8147bdea413534eeedc.tar.bz2
vmstate: port cirrus_vga device
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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 792f592..cf266b3 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -408,6 +408,15 @@ extern const VMStateInfo vmstate_info_buffer;
+ type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \
}
+#define VMSTATE_BUFFER_START_MIDDLE(_field, _state, start) { \
+ .name = (stringify(_field)), \
+ .size = sizeof(typeof_field(_state,_field)) - start, \
+ .info = &vmstate_info_buffer, \
+ .flags = VMS_BUFFER, \
+ .offset = offsetof(_state, _field) + start \
+ + type_check_array(uint8_t,typeof_field(_state, _field),sizeof(typeof_field(_state,_field))) \
+}
+
extern const VMStateDescription vmstate_pci_device;
#define VMSTATE_PCI_DEVICE(_field, _state) { \