diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2018-10-18 09:33:45 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-10-19 13:44:12 +0200 |
commit | ca9759c2a92f528f256fef0e3922416f7bb47bf9 (patch) | |
tree | 8e1152eced839d5938854daef47eddd3c6445c6b /replay/replay-events.c | |
parent | a8de0115008184788525a0fab5cb74368be808a4 (diff) | |
download | qemu-ca9759c2a92f528f256fef0e3922416f7bb47bf9.zip qemu-ca9759c2a92f528f256fef0e3922416f7bb47bf9.tar.gz qemu-ca9759c2a92f528f256fef0e3922416f7bb47bf9.tar.bz2 |
replay: don't process events at virtual clock checkpoint
As QEMU becomes more multi-threaded and non-synchronized, checkpoints
move from thread to thread. And the event queue that processed at checkpoints
should belong to the same thread in both record and replay executions.
This patch disables asynchronous event processing at virtual clock
checkpoint, because it may be invoked in different threads at record and
replay. This patch is temporary fix until the checkpoints are completely
refactored.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Message-Id: <20181018063345.7433.11678.stgit@pasha-VirtualBox>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'replay/replay-events.c')
-rw-r--r-- | replay/replay-events.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/replay/replay-events.c b/replay/replay-events.c index 0964a82..d9a2d49 100644 --- a/replay/replay-events.c +++ b/replay/replay-events.c @@ -190,6 +190,7 @@ void replay_save_events(int checkpoint) { g_assert(replay_mutex_locked()); g_assert(checkpoint != CHECKPOINT_CLOCK_WARP_START); + g_assert(checkpoint != CHECKPOINT_CLOCK_VIRTUAL); while (!QTAILQ_EMPTY(&events_list)) { Event *event = QTAILQ_FIRST(&events_list); replay_save_event(event, checkpoint); |