diff options
author | Kunkun Jiang <jiangkunkun@huawei.com> | 2021-05-27 20:31:01 +0800 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-06-18 08:38:04 -0600 |
commit | 22fca190e25b10761925bb1eeadeda07aabf3c26 (patch) | |
tree | f011115d20d069ade07b727f7aee6bde882ce5b4 /qapi/string-input-visitor.c | |
parent | 2a5781331a08628fa5d5a0e9a5ea415ce462e707 (diff) | |
download | qemu-22fca190e25b10761925bb1eeadeda07aabf3c26.zip qemu-22fca190e25b10761925bb1eeadeda07aabf3c26.tar.gz qemu-22fca190e25b10761925bb1eeadeda07aabf3c26.tar.bz2 |
vfio: Fix unregister SaveVMHandler in vfio_migration_finalize
In the vfio_migration_init(), the SaveVMHandler is registered for
VFIO device. But it lacks the operation of 'unregister'. It will
lead to 'Segmentation fault (core dumped)' in
qemu_savevm_state_setup(), if performing live migration after a
VFIO device is hot deleted.
Fixes: 7c2f5f75f94 (vfio: Register SaveVMHandlers for VFIO device)
Reported-by: Qixin Gan <ganqixin@huawei.com>
Signed-off-by: Kunkun Jiang <jiangkunkun@huawei.com>
Message-Id: <20210527123101.289-1-jiangkunkun@huawei.com>
Reviewed by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'qapi/string-input-visitor.c')
0 files changed, 0 insertions, 0 deletions