From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48620 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4I8D-0004xm-D3 for qemu-devel@nongnu.org; Fri, 08 Oct 2010 14:57:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4I88-0001tt-He for qemu-devel@nongnu.org; Fri, 08 Oct 2010 14:57:21 -0400 Received: from mtagate2.de.ibm.com ([195.212.17.162]:33809) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4I88-0001th-8i for qemu-devel@nongnu.org; Fri, 08 Oct 2010 14:57:20 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.1/8.13.1) with ESMTP id o98FmkiU010180 for ; Fri, 8 Oct 2010 15:48:46 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o98Fmh3p3698918 for ; Fri, 8 Oct 2010 17:48:45 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o98FmhBu019544 for ; Fri, 8 Oct 2010 17:48:43 +0200 From: Stefan Hajnoczi Date: Fri, 8 Oct 2010 16:48:27 +0100 Message-Id: <1286552914-27014-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH v2 0/7] qed: Add QEMU Enhanced Disk format List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Anthony Liguori , Christoph Hellwig , Stefan Hajnoczi , Avi Kivity QEMU Enhanced Disk format is a disk image format that forgoes features found in qcow2 in favor of better levels of performance and data integrity. Due to its simpler on-disk layout, it is possible to safely perform metadata updates more efficiently. Installations, suspend-to-disk, and other allocation-heavy I/O workloads will see increased performance due to fewer I/Os and syncs. Workloads that do not cause new clusters to be allocated will perform similar to raw images due to in-memory metadata caching. The format supports sparse disk images. It does not rely on the host filesystem holes feature, making it a good choice for sparse disk images that need to be transferred over channels where holes are not supported. Backing files are supported so only deltas against a base image can be stored. The file format is extensible so that additional features can be added later with graceful compatibility handling. Internal snapshots are not supported. This eliminates the need for additional metadata to track copy-on-write clusters. Compression and encryption are not supported. They add complexity and can be implemented at other layers in the stack (i.e. inside the guest or on the host). Encryption has been identified as a potential future extension and the file format allows for this. This patchset implements the base functionality. Later patches will address the following points: * Resizing the disk image. The capability has been designed in but the code has not been written yet. * Resetting the image after backing file commit completes. Signed-off-by: Anthony Liguori Signed-off-by: Stefan Hajnoczi --- This code is also available from git: http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/qed v2: * Add QED format specification to documentation * Use __builtin_ctzl() for get_bits_from_size() * Fine-grained table locking to allow concurrent allocating write requests * Fix qemu_free() instead of qemu_vfree() in qed_unref_l2_cache_entry() * Comment clean-ups