From: Ian Jackson Subject: Re: [PATCH] ioemu: need probe backing file format Date: Tue, 18 Aug 2009 17:23:28 +0100 Message-ID: <19082.54656.438958.315648@mariner.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Wei Kong writes ("[Xen-devel] [PATCH] ioemu: need probe backing file format"): > Revert changeset 17646 > Due to qcow2 also has backing file. I'm not sure what you mean exactly or what you are trying to achieve, but guessing slightly: Do you mean that you have a qcow2 image which has a backing file other than in raw format (eg, another cow image) ? If so that is sadly not supported in Xen; the version of qemu we currently have has no way of recording the backing file format and format probing is a security vulnerability, as has been discussed several times. > - ret = bdrv_open2(bs->backing_hd, backing_filename, open_flags, > &bdrv_raw); > + ret = bdrv_open(bs->backing_hd, backing_filename, open_flags, > &bdrv_raw); In any case this is wrong because bdrv_open has one fewer arguments than bdrv_open2 ... Ian.