366a85e4bb
Record/replay provides REPLAY_CLOCK_LOCKED macro to access the clock when vm_clock_seqlock is locked. This macro is needed because replay internals operate icount. In locked case replay use icount_get_raw_locked for icount request, which prevents excess locking which leads to deadlock. But previously only record code used *_locked function and replay did not. Therefore sometimes clock access lead to deadlocks. This patch fixes clock access for replay too and uses *_locked icount access function. Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru> Message-Id: <161347990483.1313189.8371838968343494161.stgit@pasha-ThinkPad-X280> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> |
||
---|---|---|
.. | ||
arch_type.c | ||
bdrv-next-monitor-owned.c | ||
blk-commit-all.c | ||
blk-exp-close-all.c | ||
blockdev-close-all-bdrv-states.c | ||
change-state-handler.c | ||
cmos.c | ||
cpu-get-clock.c | ||
cpu-synchronize-state.c | ||
cpus-get-virtual-clock.c | ||
dump.c | ||
error-printf.c | ||
fdset.c | ||
fw_cfg.c | ||
gdbstub.c | ||
get-vm-name.c | ||
icount.c | ||
io_uring.c | ||
iothread-lock.c | ||
iothread.c | ||
is-daemonized.c | ||
isa-bus.c | ||
linux-aio.c | ||
meson.build | ||
migr-blocker.c | ||
monitor-core.c | ||
monitor.c | ||
pci-bus.c | ||
pci-host-piix.c | ||
qdev.c | ||
qemu-timer-notify-cb.c | ||
qmp_memory_device.c | ||
qmp-command-available.c | ||
qtest.c | ||
ram-block.c | ||
ramfb.c | ||
replay-tools.c | ||
replay.c | ||
runstate-check.c | ||
semihost.c | ||
set-fd-handler.c | ||
sysbus.c | ||
target-get-monitor-def.c | ||
target-monitor-defs.c | ||
tpm.c | ||
trace-control.c | ||
uuid.c | ||
vm-stop.c | ||
vmgenid.c | ||
vmstate.c | ||
win32-kbd-hook.c | ||
xen-hw-stub.c | ||
yank.c |