[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/9] vmstate: be able to store/save a pci device fro
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 8/9] vmstate: be able to store/save a pci device from a pointer |
Date: |
Thu, 10 Mar 2011 12:33:55 +0100 |
Signed-off-by: Juan Quintela <address@hidden>
---
hw/hw.h | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/hw/hw.h b/hw/hw.h
index 9df1c2c..4e09f18 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -629,6 +629,14 @@ extern const VMStateDescription vmstate_pci_device;
.offset = vmstate_offset_value(_state, _field, PCIDevice), \
}
+#define VMSTATE_PCI_DEVICE_POINTER(_field, _state) { \
+ .name = (stringify(_field)), \
+ .size = sizeof(PCIDevice), \
+ .vmsd = &vmstate_pci_device, \
+ .flags = VMS_STRUCT|VMS_POINTER, \
+ .offset = vmstate_offset_pointer(_state, _field, PCIDevice), \
+}
+
extern const VMStateDescription vmstate_pcie_device;
#define VMSTATE_PCIE_DEVICE(_field, _state) { \
--
1.7.4
- [Qemu-devel] [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 <=
- [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