summaryrefslogtreecommitdiffstats
path: root/migration
diff options
context:
space:
mode:
authorJinhao Gao2020-12-31 07:10:18 +0100
committerDr. David Alan Gilbert2021-02-08 12:19:51 +0100
commite6ddad1fd53e6e4d65726e41c7063900a69ab694 (patch)
treec6f874195f84d62282ddb73066d0f512e9e5b88d /migration
parentMerge remote-tracking branch 'remotes/mcayland/tags/qemu-sparc-20210207' into... (diff)
downloadqemu-e6ddad1fd53e6e4d65726e41c7063900a69ab694.tar.gz
qemu-e6ddad1fd53e6e4d65726e41c7063900a69ab694.tar.xz
qemu-e6ddad1fd53e6e4d65726e41c7063900a69ab694.zip
spapr_pci: Fix memory leak of vmstate_spapr_pci
When VM migrate VMState of spapr_pci, the field(msi_devs) of spapr_pci having a flag of VMS_ALLOC need to allocate memory. If the src doesn't free memory of msi_devs in SaveStateEntry of spapr_pci after QEMUFile save VMState of spapr_pci, it may result in memory leak of msi_devs. We add the post_save func to free memory, which prevents memory leak. Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: Jinhao Gao <gaojinhao@huawei.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Message-Id: <20201231061020.828-2-gaojinhao@huawei.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration')
0 files changed, 0 insertions, 0 deletions