qemu/replay
Alex Bennée d759c951f3 replay: push replay_mutex_lock up the call tree
Now instead of using the replay_lock to guard the output of the log we
now use it to protect the whole execution section. This replaces what
the BQL used to do when it was held during TCG execution.

We also introduce some rules for locking order - mainly that you
cannot take the replay_mutex while holding the BQL. This leads to some
slight sophistry during start-up and extending the
replay_mutex_destroy function to unlock the mutex without checking
for the BQL condition so it can be cleanly dropped in the non-replay
case.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Tested-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20180227095248.1060.40374.stgit@pasha-VirtualBox>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
2018-03-12 17:10:36 +01:00
..
Makefile.objs replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
replay-audio.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay-char.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay-events.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay-input.c Include less of the generated modular QAPI headers 2018-03-02 13:45:50 -06:00
replay-internal.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay-internal.h replay: don't destroy mutex at exit 2018-03-12 17:09:50 +01:00
replay-net.c record/replay: add network support 2017-01-06 10:38:00 +08:00
replay-snapshot.c replay: save prior value of the host clock 2018-03-12 16:12:50 +01:00
replay-time.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00