Re: [Qemu-devel] [RFC PATCH v7 21/21] replay: recording of the user input

2015-01-19 Thread Paolo Bonzini
On 16/01/2015 08:23, Pavel Dovgaluk wrote: >> > >> > Similar to other cases, please wrap this into a single function, >> > something like >> > >> > if (replay_handle_input_event(evt)) { >> > return; >> > } >> > >> > /* ... original contents of qemu_input_event_send ... */ >

Re: [Qemu-devel] [RFC PATCH v7 21/21] replay: recording of the user input

2015-01-15 Thread Pavel Dovgaluk
> From: Paolo Bonzini [mailto:pbonz...@redhat.com] > On 12/01/2015 13:01, Pavel Dovgalyuk wrote: > > +void qemu_input_event_send(QemuConsole *src, InputEvent *evt) > > { > > -QemuInputHandlerState *s; > > - > > if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) { > >

Re: [Qemu-devel] [RFC PATCH v7 21/21] replay: recording of the user input

2015-01-12 Thread Paolo Bonzini
On 12/01/2015 13:01, Pavel Dovgalyuk wrote: > +void qemu_input_event_send(QemuConsole *src, InputEvent *evt) > { > -QemuInputHandlerState *s; > - > if (!runstate_is_running() && !runstate_check(RUN_STATE_SUSPENDED)) { > return; > } > > +if (replay_mode == REPLAY_MODE

[Qemu-devel] [RFC PATCH v7 21/21] replay: recording of the user input

2015-01-12 Thread Pavel Dovgalyuk
This records user input (keyboard and mouse events) in record mode and replays these input events in replay mode. Signed-off-by: Pavel Dovgalyuk --- include/ui/input.h |2 + replay/Makefile.objs |1 replay/replay-events.c | 48 replay/replay-input.c