From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQYG8-0006tt-2K for qemu-devel@nongnu.org; Thu, 20 Mar 2014 04:23:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQYFz-0002vA-F7 for qemu-devel@nongnu.org; Thu, 20 Mar 2014 04:23:28 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:38359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQYFz-0002v6-7F for qemu-devel@nongnu.org; Thu, 20 Mar 2014 04:23:19 -0400 Received: by mail-wg0-f51.google.com with SMTP id k14so321011wgh.10 for ; Thu, 20 Mar 2014 01:23:18 -0700 (PDT) Date: Thu, 20 Mar 2014 09:23:14 +0100 From: Stefan Hajnoczi Message-ID: <20140320082314.GD28673@stefanha-thinkpad.redhat.com> References: <20140318130819.GB7136@stefanha-thinkpad.redhat.com> <20140318133044.GF29054@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140318133044.GF29054@redhat.com> Subject: Re: [Qemu-devel] Adding dmcrypt to QEMU block drivers 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 , "Hamilton, Peter A." , Markus Armbruster , "qemu-devel@nongnu.org" , "Coffman, Joel M." On Tue, Mar 18, 2014 at 01:30:44PM +0000, Daniel P. Berrange wrote: > On Tue, Mar 18, 2014 at 02:08:19PM +0100, Stefan Hajnoczi wrote: > > On Mon, Mar 17, 2014 at 08:48:08PM -0400, Hamilton, Peter A. wrote: > > I guess the filter would be deployed below the image format: > > qcow2 -> luks -> file > > I could see it being either above or below the image format at > mgmt app's choice. Having it above the image format means only > the payload is encrypted, so you can still query the basic > metadata (like logic disk size, backing files) without decrypting, > which is a nice aspect of the way qcow2 encryption historically > worked. I could see though that people might want even the header > encrypted to prevent anyone seeing anything about the image format > without keys. The difference is that if you encrypt just the payload then dmcrypt compatibility is much less useful since the data is now intermingled with image format metadata. But I agree in some cases it may be the right thing to do.