Received: from eggs.gnu.org ([2001:4830:134:3::10]:48290) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTv81-0004uf-GH for qemu-devel@nongnu.org; Tue, 16 Sep 2014 11:57:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTv7v-0007wC-9c for qemu-devel@nongnu.org; Tue, 16 Sep 2014 11:57:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTv7v-0007vl-12 for qemu-devel@nongnu.org; Tue, 16 Sep 2014 11:57:11 -0400 From: Markus Armbruster References: <1410877464-20481-1-git-send-email-stefanha@redhat.com> Date: Tue, 16 Sep 2014 17:56:59 +0200 In-Reply-To: <1410877464-20481-1-git-send-email-stefanha@redhat.com> (Stefan Hajnoczi's message of "Tue, 16 Sep 2014 15:24:24 +0100") Message-ID: <87wq93a790.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] block: delete cow block driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , shhuiw@163.com, qemu-devel@nongnu.org Stefan Hajnoczi writes: > This patch removes support for the cow file format. > > Normally we do not break backwards compatibility but in this case there > is no impact and it is the most logical option. Extraordinary claims > require extraordinary evidence so I will show why removing the cow block > driver is the right thing to do. > > The cow file format is the disk image format for Usermode Linux, a way > of running a Linux system in userspace. The performance of UML was > never great and it was hacky, but it enjoyed some popularity before > hardware virtualization support became mainstream. > > QEMU's block/cow.c is supposed to read this image file format. > Unfortunately the file format was underspecified: > > 1. Earlier Linux versions used the MAXPATHLEN constant for the backing > filename field. The value of MAXPATHLEN can change, so Linux > switched to a 4096 literal but QEMU has a 1024 literal. > > 2. Padding was not used on the header struct (both in the Linux kernel > and in QEMU) so the struct layout varied across architectures. In > particular, i386 and x86_64 were different due to int64_t alignment > differences. Linux now uses __attribute__((packed)), QEMU does not. > > Therefore: > > 1. QEMU cow images do not conform to the Linux cow image file format. > > 2. cow images cannot be shared between different host architectures. > > This means QEMU cow images are useless and QEMU has not had bug reports > from users actually hitting these issues. > > Let's get rid of this thing, it serves no purpose and no one will be > affected. > > Signed-off-by: Stefan Hajnoczi Reviewed-by: Markus Armbruster