mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 11:53:39 +08:00
vmstate: fix breakage by 7e72abc382
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>
This commit is contained in:
parent
9848bbf1a8
commit
ae6b2c4ed9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user