]> git.proxmox.com Git - mirror_qemu.git/commit
replay: fix recursive checkpoints
authorPavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Mon, 29 Mar 2021 07:59:25 +0000 (10:59 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Apr 2021 07:40:45 +0000 (09:40 +0200)
commit7cebff0d0374d2ffd94f3bffe6ea922bb9091563
tree9079acf3c1fd4cfc0577f02c69e043661996dfcc
parenta061a71e0d8f259fbb241485f6601bd02c7d086a
replay: fix recursive checkpoints

Record/replay uses checkpoints to synchronize the execution
of the threads and timers. Hardware events such as BH are
processed at the checkpoints too.
Event processing can cause refreshing the virtual timers
and calling the icount-related functions, that also use checkpoints.
This patch prevents recursive processing of such checkpoints,
because they have their own records in the log and should be
processed later.

Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <161700476500.1140362.10108444973730452257.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
replay/replay.c