From patchwork Wed Oct 21 01:52:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: vmstate: fix breakage by 7e72abc382b700a72549e8147bdea413534eeedc From: TeLeMan X-Patchwork-Id: 36487 Message-Id: <25985345.post@talk.nabble.com> To: qemu-devel@nongnu.org Date: Tue, 20 Oct 2009 18:52:46 -0700 (PDT) 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. --- hw/cirrus_vga.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) VMSTATE_STRUCT(cirrus_vga, PCICirrusVGAState, 0, diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 9dfe76a..262ba9c 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -3017,7 +3017,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),