replay: ptimer
commit8a354bd935a800dd2d98ac8f30707e2912c80ae6
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Thu, 17 Sep 2015 16:24:56 +0000 (17 19:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Nov 2015 09:16:03 +0000 (6 10:16 +0100)
treefa6b917c403d7485260df80fc7f83ea449f2a00c
parentdf281b80b9ecba65d85795aa738c29e5b94d5ef1
replay: ptimer

This patch adds deterministic replay for hardware periodic countdown timers.
ptimer uses bottom halves layer to execute such an asynchronous callback.
We put this callback into the replay queue instead of bottom halves one.
When checkpoint is met by main loop thread, the replay queue is processed
and callback is executed. Binding callback moment to one of the checkpoints
makes it deterministic.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20150917162456.8676.83366.stgit@PASHA-ISP.def.inno>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
hw/core/ptimer.c
include/sysemu/replay.h
replay/replay-events.c
replay/replay-internal.h