From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmVES-00077d-Fg for qemu-devel@nongnu.org; Tue, 20 Sep 2016 20:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmVEO-0002PT-E7 for qemu-devel@nongnu.org; Tue, 20 Sep 2016 20:17:48 -0400 Message-ID: <1474417056.2857.95.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Wed, 21 Sep 2016 10:17:36 +1000 In-Reply-To: <0AB3F21C-C75A-4232-93FB-5FC2ED47B3D1@gmail.com> References: <0AB3F21C-C75A-4232-93FB-5FC2ED47B3D1@gmail.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] add resolutions via command-line List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: G 3 , Eric Blake Cc: "list@suse.de:PowerPC list:PowerPC" , qemu-devel qemu-devel On Tue, 2016-09-20 at 09:51 -0400, G 3 wrote: >=20 > The malloc() function used in this driver is used to allocate a > very=C2=A0=C2=A0 > small amount of space at most. We are realistically talking under > 2k.=C2=A0=C2=A0 > Running out of space is highly unlikely. I'm sure the user could do=C2=A0= =C2=A0 > something evil to try to crash the driver, but it they succeed, it=C2=A0= =C2=A0 > would be their own fault. Under normal use 2k of memory is all that=C2=A0= =C2=A0 > is needed Why don't you use PoolAllocateResident from the DSL ?