aboutsummaryrefslogtreecommitdiff
path: root/python/qemu
diff options
context:
space:
mode:
authorPavel Dovgalyuk <Pavel.Dovgaluk@gmail.com>2020-04-30 12:13:49 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-10 12:10:47 -0400
commitddf63df736257f9151d5e0fc3c6fddcb97f29cab (patch)
tree7228e6c60bb236ebfc859dc9e54fcf5329437cea /python/qemu
parent2356ff8500f3aec43070fcfa61a624ec36a8c6b4 (diff)
downloadqemu-ddf63df736257f9151d5e0fc3c6fddcb97f29cab.zip
qemu-ddf63df736257f9151d5e0fc3c6fddcb97f29cab.tar.gz
qemu-ddf63df736257f9151d5e0fc3c6fddcb97f29cab.tar.bz2
replay: implement fair mutex
In record/replay icount mode main loop thread and vCPU thread do not perform simultaneously. They take replay mutex to synchronize the actions. Sometimes vCPU thread waits for locking the mutex for very long time, because main loop releases the mutex and takes it back again. Standard qemu mutex do not provide the ordering capabilities. This patch adds a "queue" for replay mutex. Therefore thread ordering becomes more "fair". Threads are executed in the same order as they are trying to take the mutex. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru> Message-Id: <158823802979.28101.9340462887738957616.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'python/qemu')
0 files changed, 0 insertions, 0 deletions