diff options
author | Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> | 2016-03-14 10:44:59 +0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-03-30 12:12:15 +0200 |
commit | 58a0067aa8bf1e3ccad4fc354b080502e63f9fb1 (patch) | |
tree | 57cf638fcb711f371f3b1da98e728067b7696f10 /replay | |
parent | c32b82afaf261ebb922269e2be298e05331b875c (diff) | |
download | qemu-58a0067aa8bf1e3ccad4fc354b080502e63f9fb1.zip qemu-58a0067aa8bf1e3ccad4fc354b080502e63f9fb1.tar.gz qemu-58a0067aa8bf1e3ccad4fc354b080502e63f9fb1.tar.bz2 |
replay: bh scheduling fix
This patch fixes scheduling of bottom halves when record/replay is enabled.
Now BH are not added to replay queue when asynchronous events are disabled.
This may happen in startup and loadvm/savevm phases of execution.
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'replay')
-rw-r--r-- | replay/replay-events.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay-events.c b/replay/replay-events.c index ca940f7..4aa8034 100644 --- a/replay/replay-events.c +++ b/replay/replay-events.c @@ -135,7 +135,7 @@ void replay_add_event(ReplayAsyncEventKind event_kind, void replay_bh_schedule_event(QEMUBH *bh) { - if (replay_mode != REPLAY_MODE_NONE) { + if (replay_mode != REPLAY_MODE_NONE && events_enabled) { uint64_t id = replay_get_current_step(); replay_add_event(REPLAY_ASYNC_EVENT_BH, bh, NULL, id); } else { |