aboutsummaryrefslogtreecommitdiffstats
path: root/hw/pcie.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-01-13 17:07:20 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-01-13 10:20:51 -0600
commit701a8f76aa5243d90a71935982c20c06d8e83b80 (patch)
tree0cd413bfa739326cb70b251d3ed2b698d0debb41 /hw/pcie.h
parent49d4d9b63ebb0d487e80d3d85a75d8256d313df9 (diff)
vmstate: extract declarations out of hw/hw.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pcie.h')
-rw-r--r--hw/pcie.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/pcie.h b/hw/pcie.h
index a213fbaee..b8ab0c7b4 100644
--- a/hw/pcie.h
+++ b/hw/pcie.h
@@ -129,4 +129,15 @@ void pcie_add_capability(PCIDevice *dev,
void pcie_ari_init(PCIDevice *dev, uint16_t offset, uint16_t nextfn);
+extern const VMStateDescription vmstate_pcie_device;
+
+#define VMSTATE_PCIE_DEVICE(_field, _state) { \
+ .name = (stringify(_field)), \
+ .version_id = 2, \
+ .size = sizeof(PCIDevice), \
+ .vmsd = &vmstate_pcie_device, \
+ .flags = VMS_STRUCT, \
+ .offset = vmstate_offset_value(_state, _field, PCIDevice), \
+}
+
#endif /* QEMU_PCIE_H */