From: "Jan Beulich" Subject: Re: [PATCH] libxc: lzma build fix Date: Fri, 11 Feb 2011 13:41:08 +0000 Message-ID: <4D554A84020000780003179D@vpn.id2.novell.com> References: <201101261622.14583.Christoph.Egger@amd.com> <19776.18635.63919.190329@mariner.uk.xensource.com> <201101261827.25727.Christoph.Egger@amd.com> <1296158075.20804.41.camel@localhost.localdomain> <19778.44151.155214.541044@mariner.uk.xensource.com> <19779.4137.968842.267144@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <19779.4137.968842.267144@mariner.uk.xensource.com> 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: Christoph Egger , Ian Campbell , Ian Jackson Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 28.01.11 at 19:51, Ian Jackson wrote: > libxc: Do not use host physmem as parameter to lzma decoder >=20 > It's not clear why a userspace lzma decode would want to use that > particular value, what bearing it has on anything or why it would > assume it could use 1/3 of the total RAM in the system (potentially > quite a large amount of RAM) as opposed to any other limit number. >=20 > Instead, hardcode 32Mby. Has anyone of you actually tested this? I don't get lzma to work with this set to less than 128Mb, and xz's configure.ac also sort of states this to be a minimal requirement for arbitrary input. > This reverts 22830:c80960244942, removes the xc_get_physmem/physmem > function entirely, and replaces the expression at the call site with a > fixed constant. >=20 > Signed-off-by: Ian Jackson > Cc: Ian Campbell > Cc: Christoph Egger Jan