icount: improve counting for record/replay
commitefab87cf79077a9624f675fc5fc8f034eaedfe4d
authorPavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
Thu, 17 Sep 2015 16:24:39 +0000 (17 19:24 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 6 Nov 2015 09:16:02 +0000 (6 10:16 +0100)
tree1c3ee3cfed4094cc350306224238e36953c8b307
parentb60c48a7019614902f2debe4d4181ec8cfa60e0d
icount: improve counting for record/replay

icount_warp_rt function is called by qemu_clock_warp and as
callback of icount_warp timer. This patch adds call to qemu_clock_warp
into main_loop_wait function, because icount warp may be missed
in record/replay mode, when CPU is sleeping.
This patch also disables of calling this function by timer, because
it is not needed after making modifications of main_loop_wait.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-Id: <20150917162439.8676.38290.stgit@PASHA-ISP.def.inno>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgaluk@ispras.ru>
cpus.c
main-loop.c