aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-09 09:46:57 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 18:20:58 -0500
commit13f5545daa8b4d12221bc69287c6a5d87962e115 (patch)
treea23eacea53af260d9e40f552291f00172a792bd8 /hw/hw.h
parent733318ea9c6d846a6a047b87619e7d9d6e9707d1 (diff)
downloadqemu-13f5545daa8b4d12221bc69287c6a5d87962e115.zip
qemu-13f5545daa8b4d12221bc69287c6a5d87962e115.tar.gz
qemu-13f5545daa8b4d12221bc69287c6a5d87962e115.tar.bz2
Fix VMSTATE_PCI_DEVICE version
PCI device entries have to have a default version, not 2, because they are used in the midle of other structures that can have _any_ version number. We can't use proper versioning here until we have SubSections support. Why we didn't noticed before? Because in a PC, the only device ported with a version less that 2 is piix_pm, and for that one, default pci values are right. If you use a virtio-console, you will see that its state it is not loaded back. Thanks to Amit Shah for reporting the problem and help debug the fix. 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.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 0ae4000..a0cb94e 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -408,7 +408,6 @@ extern const VMStateDescription vmstate_pci_device;
#define VMSTATE_PCI_DEVICE(_field, _state) { \
.name = (stringify(_field)), \
- .version_id = 2, \
.size = sizeof(PCIDevice), \
.vmsd = &vmstate_pci_device, \
.flags = VMS_STRUCT, \