savevm: Save extra data with iothread lock

This commit is contained in:
Matt Borgerson 2023-06-18 14:53:16 -07:00
parent e10ad42caa
commit 71c8cb62af

View File

@ -1538,10 +1538,10 @@ static int qemu_savevm_state(QEMUFile *f, Error **errp)
memset(&compression_counters, 0, sizeof(compression_counters));
ms->to_dst_file = f;
qemu_mutex_unlock_iothread();
#ifdef XBOX
xemu_snapshots_save_extra_data(f);
#endif
qemu_mutex_unlock_iothread();
qemu_savevm_state_header(f);
qemu_savevm_state_setup(f);
qemu_mutex_lock_iothread();