From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmLML-0000uR-TS for qemu-devel@nongnu.org; Tue, 20 Sep 2016 09:45:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmLMH-0006cI-05 for qemu-devel@nongnu.org; Tue, 20 Sep 2016 09:45:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmLMG-0006bA-Pi for qemu-devel@nongnu.org; Tue, 20 Sep 2016 09:45:12 -0400 References: <20160920123126.5400.29283.stgit@PASHA-ISP.def.inno> <20160920123149.5400.87854.stgit@PASHA-ISP.def.inno> <85a6ea4b-880c-cb06-edc1-af19b480ccd3@redhat.com> <002301d2133c$18cbf170$4a63d450$@ru> <002b01d21344$18909c80$49b1d580$@ru> From: Paolo Bonzini Message-ID: Date: Tue, 20 Sep 2016 15:45:07 +0200 MIME-Version: 1.0 In-Reply-To: <002b01d21344$18909c80$49b1d580$@ru> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 4/8] replay: save/load initial state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pavel Dovgalyuk , 'Pavel Dovgalyuk' , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, jasowang@redhat.com, quintela@redhat.com, mst@redhat.com, 'Kevin Wolf' On 20/09/2016 15:37, Pavel Dovgalyuk wrote: >> c) no rrsnapshot implies -snapshot: >> without overlay: >> -drive file=disk.raw,if=none,id=img-direct >> -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay >> >> with overlay: >> -drive file=foo.qcow2,if=none,id=img-direct >> -drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay >> -icount ...,rrsnapshot=snapname > > But how record will create this overlay? > This method requires creating overlay manually, because backing file is > not specified at all. You create it manually, or you just use a .qcow2 file to begin with for your image. Then: 1) if you specify no snapshot, a temporary .qcow2 file is created on top so data is not destroyed 2) if you specify a snapshot, that snapshot is preserved (so you don't lose the base state even though the file changes) Paolo