qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH v8 08/21] cpu: replay instructions sequence


From: Pavel Dovgaluk
Subject: Re: [Qemu-devel] [RFC PATCH v8 08/21] cpu: replay instructions sequence
Date: Mon, 2 Feb 2015 15:28:43 +0300

> From: Paolo Bonzini [mailto:address@hidden
> On 22/01/2015 09:52, Pavel Dovgalyuk wrote:
> > This patch adds calls to replay functions into the icount setup block.
> > In record mode number of executed instructions is written to the log.
> > In replay mode number of istructions to execute is taken from the replay 
> > log.
> >
> > Signed-off-by: Pavel Dovgalyuk <address@hidden>
> > ---
> >  cpu-exec.c      |    1 +
> >  cpus.c          |   28 ++++++++++++++++++----------
> >  replay/replay.c |   24 ++++++++++++++++++++++++
> >  replay/replay.h |    4 ++++
> >  4 files changed, 47 insertions(+), 10 deletions(-)
> >
> > diff --git a/cpu-exec.c b/cpu-exec.c
> > index 49f01f5..99a0993 100644
> > --- a/cpu-exec.c
> > +++ b/cpu-exec.c
> > @@ -531,6 +531,7 @@ int cpu_exec(CPUArchState *env)
> >                              }
> >                              cpu->exception_index = EXCP_INTERRUPT;
> >                              next_tb = 0;
> > +                            qemu_notify_event();
> 
> Why is this needed?

It is needed to wake up iothread in replay mode.
Otherwise it waits for additional time and replay becomes too slow.

> 
> >                              cpu_loop_exit(cpu);
> >                          }
> >                          break;

Pavel Dovgalyuk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]