replay: fix event queue flush for qemu shutdown
commitc4b8ffcbb8531206e12cf3ad92fa90f7c80ed464
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Fri, 27 May 2022 10:46:07 +0000 (27 13:46 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Jun 2022 07:26:53 +0000 (6 09:26 +0200)
tree3242a498ba67260a976073e4b9943e3b05b90e89
parent05d6814c3eb16524e992bb7048d3385f8e99dd6a
replay: fix event queue flush for qemu shutdown

This patch fixes event queue flush in the case of emulator
shutdown. replay_finish_events should be called when replay_mode
is not cleared.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <165364836758.688121.7959245442743676491.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
replay/replay.c