qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 06/10] replay: vmstate for replay module


From: Pavel Dovgalyuk
Subject: Re: [Qemu-devel] [PATCH v2 06/10] replay: vmstate for replay module
Date: Fri, 16 Sep 2016 10:36:06 +0300

> From: Paolo Bonzini [mailto:address@hidden On Behalf Of Paolo Bonzini
> On 15/09/2016 11:01, Pavel Dovgalyuk wrote:
> > This patch introduces vmstate for replay data structures.
> > It allows saving and loading vmstate while replaying.
> >
> > Signed-off-by: Pavel Dovgalyuk <address@hidden>
> > ---
> >  include/sysemu/replay.h  |    4 ++++
> >  replay/replay-internal.h |    2 ++
> >  replay/replay-snapshot.c |   40 ++++++++++++++++++++++++++++++++++++++++
> >  vl.c                     |    1 +
> >  4 files changed, 47 insertions(+)
> >
> > diff --git a/include/sysemu/replay.h b/include/sysemu/replay.h
> > index aa378ce..1123fc2 100644
> > --- a/include/sysemu/replay.h
> > +++ b/include/sysemu/replay.h
> > @@ -147,6 +147,10 @@ void replay_net_packet_event(ReplayNetState *rns, 
> > unsigned flags,
> >
> >  /* VM state operations */
> >
> > +/* Registers replay VMState.
> > +   Should be called before virtual devices initialization
> > +   to make cached timers available for post_load functions. */
> > +void replay_vmstate_register(void);
> 
> Can this be done simply in replay_configure?

I guess it can. Configuring is performed early enough to allow vmsd be added
first into the list.

Pavel Dovgalyuk




reply via email to

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