From: "Jan Beulich" Subject: Re: [PATCH 2/3] add DomU xz kernel decompression Date: Thu, 10 Mar 2011 20:17:00 +0000 Message-ID: <4D7931BC020000780006C4A8@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian.Jackson@eu.citrix.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> Ian Jackson 03/10/11 6:51 PM >>> >Jan Beulich writes ("[Xen-devel] [PATCH 2/3] add DomU xz kernel decompress= ion"): >> Signed-off-by: Jan Beulich=20 > >I see this has already been committed, but: > >> --- a/tools/libxc/xc_dom_bzimageloader.c >> +++ b/tools/libxc/xc_dom_bzimageloader.c >... >> { >> - lzma_stream stream =3D LZMA_STREAM_INIT; >> - lzma_ret ret; >> lzma_action action =3D LZMA_RUN; >> unsigned char *out_buf; >> unsigned char *tmp_buf; >> @@ -152,10 +151,9 @@ static int xc_try_lzma_decode( >> int outsize; >> const char *msg; >> =20 >> - ret =3D lzma_alone_decoder(&stream, 128*1024*1024); >> if ( ret !=3D LZMA_OK ) >> { > >I don't think this can possibly be correct. At the first glance it may look odd, I agree. However, I tested it and it did work for me. The fact is that "ret" is now getting passed in by the caller, and the invocation of (in this case) lzma_alone_decoder()= was moved into the (new) caller. If it's not that aspect of the change, I may need some more explanation from you as to what you think is wrong. Jan