Fix VMSTATE_PCI_DEVICE version
authorJuan Quintela <quintela@redhat.com>
Wed, 9 Sep 2009 07:46:57 +0000 (09:46 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 9 Sep 2009 23:20:58 +0000 (18:20 -0500)
commitdc01eab125a2f0bd5c883a1d3694d599d05141d9
treea23eacea53af260d9e40f552291f00172a792bd8
parentaca79e46993cdd4cee862f2a7ba28d7ae1de642b
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>
hw/hw.h