Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay

2015-09-23 Thread Pavel Dovgaluk
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > On 17/09/2015 18:24, Pavel Dovgalyuk wrote: > > #endif > > > > +/* CPU thread can infinitely wait for event after > > + missing the warp */ > > +qemu_clock_warp(QEMU_CLOCK_VIRTUAL); > > qemu_clock_run_all_timers(); > > It is

Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay

2015-09-23 Thread Pavel Dovgaluk
> From: Paolo Bonzini [mailto:paolo.bonz...@gmail.com] On Behalf Of Paolo > Bonzini > On 23/09/2015 09:22, Pavel Dovgaluk wrote: > > Sometimes tcg thread halts in qemu_tcg_wait_io_event function, > > waiting for any external event. Virtual clock does not run, because > > warp is not called. warp

Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay

2015-09-23 Thread Paolo Bonzini
On 23/09/2015 09:22, Pavel Dovgaluk wrote: > Sometimes tcg thread halts in qemu_tcg_wait_io_event function, > waiting for any external event. Virtual clock does not run, because > warp is not called. warp call in main_loop_wait proceeds virtual > clock and allows tcg thread to run further. Ok,

Re: [Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay

2015-09-22 Thread Paolo Bonzini
On 17/09/2015 18:24, Pavel Dovgalyuk wrote: > #endif > > +/* CPU thread can infinitely wait for event after > + missing the warp */ > +qemu_clock_warp(QEMU_CLOCK_VIRTUAL); > qemu_clock_run_all_timers(); It is still not clear to me why the call in timerlist_rearm is not

[Qemu-devel] [PATCH v18 13/21] icount: improve counting for record/replay

2015-09-17 Thread Pavel Dovgalyuk
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