summary refs log tree commit diff stats
path: root/python/qemu/machine/qtest.py
diff options
context:
space:
mode:
authorKunkun Jiang <jiangkunkun@huawei.com>2021-05-27 20:31:01 +0800
committerAlex Williamson <alex.williamson@redhat.com>2021-06-18 08:38:04 -0600
commit22fca190e25b10761925bb1eeadeda07aabf3c26 (patch)
treef011115d20d069ade07b727f7aee6bde882ce5b4 /python/qemu/machine/qtest.py
parent2a5781331a08628fa5d5a0e9a5ea415ce462e707 (diff)
downloadfocaccia-qemu-22fca190e25b10761925bb1eeadeda07aabf3c26.tar.gz
focaccia-qemu-22fca190e25b10761925bb1eeadeda07aabf3c26.zip
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 'python/qemu/machine/qtest.py')
0 files changed, 0 insertions, 0 deletions