A lot of the hang I see are when we end up spinning in
rr_wait_io_event for an event that will never come in playback. As a
new check functions which can see if we are in PLAY mode and kick us
us the wait function so the event can be processed.
This fixes most of the failures in replay_kernel.py
Fixes:https://gitlab.com/qemu-project/qemu/-/issues/2013
Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
Cc: Pavel Dovgalyuk<pavel.dovgaluk@ispras.ru>
---
v2
- report failure with replay_sync_error
---
include/sysemu/replay.h | 5 +++++
accel/tcg/tcg-accel-ops-rr.c | 2 +-
replay/replay.c | 21 +++++++++++++++++++++
3 files changed, 27 insertions(+), 1 deletion(-)