From: Ian Campbell Subject: Re: [PATCH] libxc: lzma build fix Date: Fri, 11 Feb 2011 13:53:44 +0000 Message-ID: <1297432424.21980.3069.camel@zakaz.uk.xensource.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> <4D554A84020000780003179D@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D554A84020000780003179D@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Christoph Egger , "xen-devel@lists.xensource.com" , Ian Jackson List-Id: xen-devel@lists.xenproject.org On Fri, 2011-02-11 at 13:41 +0000, Jan Beulich wrote: > >>> On 28.01.11 at 19:51, Ian Jackson wrote: > > libxc: Do not use host physmem as parameter to lzma decoder > > > > 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. > > > > 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. I looked quite hard for any documentation on this and couldn't find any, I could only find examples of people using host physmem like we were or hardcoding ~30MB. I should have looked in configure.ac, its obvious really ;-) Putting aside the fact that 128MB is a quite obscene amount of memory as a _minimum_ requirement for something like this I guess we should change the constant. Ian. > > > This reverts 22830:c80960244942, removes the xc_get_physmem/physmem > > function entirely, and replaces the expression at the call site with a > > fixed constant. > > > > Signed-off-by: Ian Jackson > > Cc: Ian Campbell > > Cc: Christoph Egger > > Jan >