vmstate: fix breakage by 7e72abc382b700a72549e8147bdea413534eeedc
authorTeLeMan <geleman@gmail.com>
Wed, 12 May 2010 02:28:51 +0000 (10:28 +0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 22 May 2010 08:39:13 +0000 (08:39 +0000)
cirrus_post_load() will be executed twice when loading vm states and then the
wrong physical memory will be registered. This issue may lead to crash qemu.

Signed-off-by: TeLeMan <geleman@gmail.com>
Acked-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/cirrus_vga.c

index 9f61a01..ba48289 100644 (file)
@@ -2985,7 +2985,6 @@ static const VMStateDescription vmstate_pci_cirrus_vga = {
     .version_id = 2,
     .minimum_version_id = 2,
     .minimum_version_id_old = 2,
-    .post_load = cirrus_post_load,
     .fields      = (VMStateField []) {
         VMSTATE_PCI_DEVICE(dev, PCICirrusVGAState),
         VMSTATE_STRUCT(cirrus_vga, PCICirrusVGAState, 0,