From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0V29-0007j0-BP for qemu-devel@nongnu.org; Mon, 15 Dec 2014 07:45:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0V23-0005se-Ph for qemu-devel@nongnu.org; Mon, 15 Dec 2014 07:45:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0V23-0005sa-Aw for qemu-devel@nongnu.org; Mon, 15 Dec 2014 07:45:47 -0500 Date: Mon, 15 Dec 2014 13:45:44 +0100 From: Kevin Wolf Message-ID: <20141215124544.GI4411@noname.str.redhat.com> References: <1418632081-20667-1-git-send-email-den@openvz.org> <1418632081-20667-15-git-send-email-den@openvz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418632081-20667-15-git-send-email-den@openvz.org> Subject: Re: [Qemu-devel] [PATCH 14/16] block/parallels: introduce ParallelsSnapshot data structure List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Jeff Cody , qemu-devel@nongnu.org, Stefan Hajnoczi Am 15.12.2014 um 09:27 hat Denis V. Lunev geschrieben: > In order to support snapshots of parallels images we should maintain > snapshots list in BDRVParallelsState. Snapshots actually forms tree. > Though, in read-only case, we do need to traverse only from current > snapshot leaf to the snapshot tree root. Thus interesting for us > snapshots forms old good linked list. > > This patch just introduces the structure for this and fills it with > a signle image as was done before. s/signle/single/ > True parsing be done in the next patch. > > Signed-off-by: Denis V. Lunev > CC: Jeff Cody > CC: Kevin Wolf > CC: Stefan Hajnoczi If I understand correctly, this is what actually describes the backing file relationship. We should probably use the normal infrastructure for this. The challenge here seems to be that the single descriptor XML file describes the complete chain of backing files. This is different from the image formats that we support until now. I think we need some design discussion here first before we even look at code. Did you consider making the snapshots regular backing files, and if so, what were the reasons that let you prefer a purely internal solution? Kevin