Re: [Qemu-devel] [RFC PATCH v9 06/23] replay: introduce icount event

2015-02-18 Thread Paolo Bonzini
On 18/02/2015 12:56, Pavel Dovgalyuk wrote: > +/*! Skips async events until some sync event will be found. */ > +bool skip_async_events(int stop_event); > +/*! Skips async events invocations from the input, > +until required data kind is found. If the requested data is not found > +report

Re: [Qemu-devel] [RFC PATCH v9 06/23] replay: introduce icount event

2015-02-18 Thread Paolo Bonzini
On 18/02/2015 12:56, Pavel Dovgalyuk wrote: > +/* nothing to skip - not all instructions used */ > +if (replay_state.instructions_count != 0 > +&& replay_has_unread_data) { > +return stop_event == EVENT_INSTRUCTION; Same here, please assert that replay_data_kind == EVENT_

[Qemu-devel] [RFC PATCH v9 06/23] replay: introduce icount event

2015-02-18 Thread Pavel Dovgalyuk
This patch adds icount event to the replay subsystem. This event corresponds to execution of several instructions and used to synchronize input events in the replay phase. Reviewed-by: Paolo Bonzini Signed-off-by: Pavel Dovgalyuk --- replay/replay-internal.c | 21 + repla