From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMCaR-0007lj-GU for qemu-devel@nongnu.org; Tue, 26 Aug 2014 04:58:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMCaI-0001Tl-FO for qemu-devel@nongnu.org; Tue, 26 Aug 2014 04:58:43 -0400 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:36890) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMCaI-0001Th-B2 for qemu-devel@nongnu.org; Tue, 26 Aug 2014 04:58:34 -0400 Received: by mail-qg0-f44.google.com with SMTP id e89so14479891qgf.31 for ; Tue, 26 Aug 2014 01:58:33 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <53FC4C32.9080700@redhat.com> Date: Tue, 26 Aug 2014 10:58:26 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <20140826071427.1672.48119.stgit@PASHA-ISP> <20140826071530.1672.16865.stgit@PASHA-ISP> In-Reply-To: <20140826071530.1672.16865.stgit@PASHA-ISP> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 11/12] mc146818rtc: add missed field to vmstate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , qemu-devel@nongnu.org Cc: zealot351@gmail.com, maria.klimushenkova@ispras.ru Il 26/08/2014 09:15, Pavel Dovgalyuk ha scritto: > +static int rtc_pre_load(void *opaque) > +{ > + RTCState *s = (RTCState *)opaque; > + s->irq_reinject_on_ack_count = 0; > + return 0; > +} > + You found a real bug here, in that the field has to be cleared at reset time. But reinitializing stuff in pre-load hooks is another quirk of your record/replay patches that does not belong in these patches (and that you have not justified yet, either). Paolo