From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmb4X-00047H-0L for qemu-devel@nongnu.org; Wed, 25 Mar 2009 17:55:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmb4S-00044i-PV for qemu-devel@nongnu.org; Wed, 25 Mar 2009 17:55:40 -0400 Received: from [199.232.76.173] (port=59991 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmb4S-00044e-KT for qemu-devel@nongnu.org; Wed, 25 Mar 2009 17:55:36 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47009) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmb4S-0004Om-4G for qemu-devel@nongnu.org; Wed, 25 Mar 2009 17:55:36 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n2PLtYEL019872 for ; Wed, 25 Mar 2009 17:55:35 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n2PLtSQQ019287 for ; Wed, 25 Mar 2009 17:55:28 -0400 Received: from localhost.localdomain (cleopatra.tlv.redhat.com [10.35.255.11]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n2PLtXoO031473 for ; Wed, 25 Mar 2009 17:55:34 -0400 From: Uri Lublin Date: Wed, 25 Mar 2009 23:55:08 +0200 Message-Id: <1238018112-7569-1-git-send-email-uril@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] keep and use backing file format (v7) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org In this patchset there are two main features: 1. Introduce Qcow2 extensions. 2. Keep backing file format such that no probing is needed. 1. Qcow2 extensions are build of magic (id) len (in bytes) and data. They reside between the end of the header and the backing filename (if exists). Unknown extensions are ignored (assumed to be added by a newer version) Based on a work done by Shahar Frank. 2. By keeping the backing file format we: a. Provide a way to know the backing file format without probing it (setting the format at creation time). b. Enable using qcow2 format over host block devices. (only if the user specifically asks for it, by providing the format at creation time). I've added bdrv_create2 and drv->bdrv_create2 (implemented only by block-qcow2 currently) to pass the backing-format to create. Also fixes a security flaw found by Daniel P. Berrange on [1] which summarizes: "Autoprobing: just say no." [1] http://lists.gnu.org/archive/html/qemu-devel/2008-12/msg01083.html Changes from v6: Rebased. Postponed highest-allocated-block patches.