From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KSsHJ-00038Z-Oj for qemu-devel@nongnu.org; Tue, 12 Aug 2008 07:43:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KSsHH-00036i-Nf for qemu-devel@nongnu.org; Tue, 12 Aug 2008 07:43:04 -0400 Received: from [199.232.76.173] (port=47984 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KSsHH-00036W-D4 for qemu-devel@nongnu.org; Tue, 12 Aug 2008 07:43:03 -0400 Received: from ns.suse.de ([195.135.220.2]:33403 helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KSsHH-0001Hu-1z for qemu-devel@nongnu.org; Tue, 12 Aug 2008 07:43:03 -0400 Message-ID: <48A17709.50905@suse.de> Date: Tue, 12 Aug 2008 13:42:01 +0200 From: Kevin Wolf MIME-Version: 1.0 Subject: Re: [Qemu-devel] PATCH: v3 Allow control over drive file open mode References: <20080801102949.GN23993@redhat.com> <48932751.5040303@codemonkey.ws> <18579.16494.791024.25671@mariner.uk.xensource.com> <4893448C.1050508@codemonkey.ws> <18592.25422.257378.988970@mariner.uk.xensource.com> In-Reply-To: <18592.25422.257378.988970@mariner.uk.xensource.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ian Jackson Cc: qemu-devel@nongnu.org Ian Jackson schrieb: >> qemu-system-x86_64 -drive file=foo.img -drive file=boo.img,read-only=on >> >> Down the road, you do a savevm. savevm has to create a checkpoint in >> all disk images. The checkpoint will be empty in boo.img but it still >> needs to create one. > > Perhaps I don't understand clearly enough how you imagine this > scenario. Surely when the snapshot is resumed it is sufficient for > the file boo.img to be identical ? > > What are these checkpoints ? Are they currently written by anything ? > > I've tried to look for the code you would be referring to but I can't > seem to find it. qemu_savevm_state just calls all the things recorded > with register_savevm and I can't seem to find anything that would do > anything to block drivers. This code is in do_savevm (in vl.c). Look for /* create the snapshots */ Kevin