aboutsummaryrefslogtreecommitdiff
path: root/qapi/qobject-input-visitor.c
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-09-18 14:28:18 -0300
committerStefan Hajnoczi <stefanha@redhat.com>2023-09-27 13:58:02 -0400
commit7478fb0df914f0a5ab551ff74b1df62dd250500e (patch)
tree57bb8703699a2afdb524d0aefafc0caef6fdcecd /qapi/qobject-input-visitor.c
parent639decf529793fc544c8055b82be8abe77fa48fa (diff)
downloadqemu-7478fb0df914f0a5ab551ff74b1df62dd250500e.zip
qemu-7478fb0df914f0a5ab551ff74b1df62dd250500e.tar.gz
qemu-7478fb0df914f0a5ab551ff74b1df62dd250500e.tar.bz2
migration: Fix possible race when shutting down to_dst_file
It's not safe to call qemu_file_shutdown() on the to_dst_file without first checking for the file's presence under the lock. The cleanup of this file happens at postcopy_pause() and migrate_fd_cleanup() which are not necessarily running in the same thread as migrate_fd_cancel(). Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Message-ID: <20230918172822.19052-5-farosas@suse.de>
Diffstat (limited to 'qapi/qobject-input-visitor.c')
0 files changed, 0 insertions, 0 deletions