Received: from eggs.gnu.org ([2001:4830:134:3::10]:35406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOiY5-0006bK-Hh for qemu-devel@nongnu.org; Fri, 20 Feb 2015 03:02:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YOiY2-0001Pn-7i for qemu-devel@nongnu.org; Fri, 20 Feb 2015 03:02:57 -0500 Received: from mail.ispras.ru ([83.149.199.45]:48339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YOiY1-0001PO-W7 for qemu-devel@nongnu.org; Fri, 20 Feb 2015 03:02:54 -0500 From: "Pavel Dovgaluk" References: <20150218115534.4176.12578.stgit@PASHA-ISP> <20150218115753.4176.28510.stgit@PASHA-ISP> <54E49108.6060401@redhat.com> In-Reply-To: <54E49108.6060401@redhat.com> Date: Fri, 20 Feb 2015 11:02:54 +0300 Message-ID: <000401d04ce3$a288dcf0$e79a96d0$@Dovgaluk@ispras.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-Language: ru Subject: Re: [Qemu-devel] [RFC PATCH v9 22/23] replay: command line options List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Paolo Bonzini' , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, peter.crosthwaite@xilinx.com, alex.bennee@linaro.org, mark.burton@greensocs.com, real@ispras.ru, batuzovk@ispras.ru, maria.klimushenkova@ispras.ru, afaerber@suse.de, fred.konrad@greensocs.com > From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] On Behalf Of Paolo Bonzini > On 18/02/2015 12:57, Pavel Dovgalyuk wrote: > > @@ -2751,6 +2757,7 @@ int main(int argc, char **argv, char **envp) > > { > > int i; > > int snapshot, linux_boot; > > + const char *icount_option = NULL; > > const char *initrd_filename; > > const char *kernel_filename, *kernel_cmdline; > > const char *boot_order; > > @@ -3770,6 +3777,8 @@ int main(int argc, char **argv, char **envp) > > } > > } > > > > + replay_configure(icount_opts); > > Is it possible to call this together with configure_icount (or even from > configure_icount)? I think that it is the best place for replay_configure. It sets replay_mode which may be checked while configuring the virtual machine. That's why this function is called before any initialization actions. Pavel Dovgalyuk