From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36694) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bknhD-0005nk-A6 for qemu-devel@nongnu.org; Fri, 16 Sep 2016 03:36:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bknh8-0005Yv-8h for qemu-devel@nongnu.org; Fri, 16 Sep 2016 03:36:26 -0400 Received: from mail.ispras.ru ([83.149.199.45]:32968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bknh8-0005UR-0y for qemu-devel@nongnu.org; Fri, 16 Sep 2016 03:36:22 -0400 From: "Pavel Dovgalyuk" References: <20160915090042.6440.22516.stgit@PASHA-ISP> <20160915090116.6440.46288.stgit@PASHA-ISP> <95e2cfc0-e020-4d4b-a593-90fe4dc7de37@redhat.com> In-Reply-To: <95e2cfc0-e020-4d4b-a593-90fe4dc7de37@redhat.com> Date: Fri, 16 Sep 2016 10:36:06 +0300 Message-ID: <001901d20fec$fc17ea90$f447bfb0$@ru> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-Language: ru Subject: Re: [Qemu-devel] [PATCH v2 06/10] replay: vmstate for replay module List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Paolo Bonzini' , 'Pavel Dovgalyuk' , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, quintela@redhat.com, jasowang@redhat.com, mst@redhat.com, agraf@suse.de, david@gibson.dropbear.id.au > From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] 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 > > --- > > 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