Received: from [140.186.70.92] (port=52964 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5eii-00078E-7s for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:16:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5eig-0007mJ-Us for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:16:43 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:35533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5eig-0007m4-Ng for qemu-devel@nongnu.org; Tue, 12 Oct 2010 09:16:42 -0400 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id o9CDGfZN011182 for ; Tue, 12 Oct 2010 13:16:41 GMT Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o9CDGflh3514390 for ; Tue, 12 Oct 2010 14:16:41 +0100 Received: from d06av01.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o9CDGeS1006195 for ; Tue, 12 Oct 2010 14:16:40 +0100 Date: Tue, 12 Oct 2010 14:16:40 +0100 From: Stefan Hajnoczi Subject: Re: [Qemu-devel] Re: [PATCH v2 3/7] docs: Add QED image format specification Message-ID: <20101012131639.GA4200@stefan-thinkpad.transitives.com> References: <1286552914-27014-1-git-send-email-stefanha@linux.vnet.ibm.com> <1286552914-27014-4-git-send-email-stefanha@linux.vnet.ibm.com> <4CB317EF.7070504@redhat.com> <20101011153039.GD5439@stefan-thinkpad.transitives.com> <4CB32F95.8040301@redhat.com> <20101011154656.GE5439@stefan-thinkpad.transitives.com> <4CB338EC.3080504@codemonkey.ws> <4CB34605.8030606@codemonkey.ws> <4CB41759.3050606@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CB41759.3050606@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Christoph Hellwig , Avi Kivity , qemu-devel@nongnu.org On Tue, Oct 12, 2010 at 10:07:53AM +0200, Kevin Wolf wrote: > Am 11.10.2010 19:14, schrieb Anthony Liguori: > > On 10/11/2010 11:18 AM, Anthony Liguori wrote: > >> On 10/11/2010 10:46 AM, Stefan Hajnoczi wrote: > >>> On Mon, Oct 11, 2010 at 05:39:01PM +0200, Avi Kivity wrote: > >>>> On 10/11/2010 05:30 PM, Stefan Hajnoczi wrote: > >>>>>> It was discussed before, but I don't think we came to a > >>>>>> conclusion. Are > >>>>>> there any circumstances under which you don't want to set the > >>>>>> QED_CF_BACKING_FORMAT flag? > >>>>> I suggest the following: > >>>>> > >>>>> QED_CF_BACKING_FORMAT_RAW = 0x1 > >>>>> > >>>>> When set, the backing file is a raw image and should not be probed for > >>>>> its file format. The default (unset) means that the backing image > >>>>> file > >>>>> format may be probed. > >>>>> > >>>>> Now the backing_fmt_{offset,size} are no longer necessary. > >>>> Should it not be an incompatible option? If the backing disk starts > >>>> with a format magic, it will be probed by an older qemu, > >>>> incorrectly. > >>> Agreed, it should be a non-compat feature bit. > >> > >> If it's just raw or not raw, then I agree it should be non-compat. > >> > >> I think we just need a feature bit then that indicates that the > >> backing file is non-probeable which certainly simplifies the > >> implementation. > >> > >> QED_F_BACKING_FORMAT_NOPROBE maybe? > > > > Er, thinking more, this is still a good idea but we still need > > QED_CF_BACKING_FORMAT because we specifically need to know when a > > protocol is specified. Otherwise, we have no way of doing nbd as a > > backing file. > > Well, the protocol is currently encoded in the file name, separated by a > colon. Of course, we want to get rid of that, but we still don't know > what we want instead. It's completely unrelated to the backing file > format, though, it's about the format of the backing file name. I agree with Kevin. There's no need to have the ill-defined backing format AFAICT. Stefan