Received: from eggs.gnu.org ([2001:4830:134:3::10]:50912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1ylj-0006fD-9J for qemu-devel@nongnu.org; Wed, 24 Jul 2013 09:06:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1ylh-0006v1-Ij for qemu-devel@nongnu.org; Wed, 24 Jul 2013 09:06:15 -0400 Received: from nodalink.pck.nerim.net ([62.212.105.220]:48147 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1ylh-0006ty-8Q for qemu-devel@nongnu.org; Wed, 24 Jul 2013 09:06:13 -0400 Date: Wed, 24 Jul 2013 15:07:56 +0200 From: =?iso-8859-1?Q?Beno=EEt?= Canet Message-ID: <20130724130756.GB5115@irqsave.net> References: <20130723124706.GB5002@irqsave.net> <20130723130053.GW2477@redhat.com> <20130723144033.GE5002@irqsave.net> <20130723152247.GC14190@stefanha-thinkpad.redhat.com> <20130723153800.GD20225@dhcp-200-207.str.redhat.com> <20130723155741.GI2477@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20130723155741.GI2477@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] QCOW2 cryptography and secure key handling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Kevin Wolf , =?iso-8859-1?Q?Beno=EEt?= Canet , qemu-devel@nongnu.org, stefanha@redhat.com, Stefan Hajnoczi > There are two ways I could see it happening. Either integrate directly > into the qcow2 file format, by mapping LUKS headers & key material > blocks into the qcow2 header region in some manner. >=20 > Alternatively do it in a completely generic block driver, that qcow2 > (or any other qemu bdrv) calls into instead of the file bdrv. That > way the entire LUKS format becomes the image file data payload. A > separate block driver, could also allow LUKS to be layered ontop, > so that metadata is encrypted too. eg so you could end up with > either layering >=20 > QCow2 bdrv -> LUKS bdrv -> file bdrv > LUKS bdrv -> QCow2 bdrv -> file bdrv I already tried the generic block driver approach on other project. (Quor= um) The problem is that it result in complex issues to make the driver works = with all QEMU features (think snapshots) and that no one has the funding to ta= ckle the infrastructure work required to solve this: writing BlockBackend and = block filters. Best regards Beno=EEt