From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi1An-0008Cr-Cd for qemu-devel@nongnu.org; Fri, 02 Oct 2015 10:18:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zi1Aj-0001QG-E0 for qemu-devel@nongnu.org; Fri, 02 Oct 2015 10:18:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zi1Aj-0001QC-8Y for qemu-devel@nongnu.org; Fri, 02 Oct 2015 10:18:53 -0400 References: <1443793405-15190-1-git-send-email-mst@redhat.com> <1443793405-15190-5-git-send-email-mst@redhat.com> From: Eric Blake Message-ID: <560E9246.2090605@redhat.com> Date: Fri, 2 Oct 2015 08:18:46 -0600 MIME-Version: 1.0 In-Reply-To: <1443793405-15190-5-git-send-email-mst@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="8PxBlW9FGLoluQl3kVmjNAmMbNp0d6Nb9" Subject: Re: [Qemu-devel] [PULL 04/15] oslib: rework anonimous RAM allocation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Maydell , Michael Tokarev , Paolo Bonzini This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --8PxBlW9FGLoluQl3kVmjNAmMbNp0d6Nb9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/02/2015 07:45 AM, Michael S. Tsirkin wrote: If it's not too late, s/anonimous/anonymous/ in the subject line > At the moment we first allocate RAM, sometimes more than necessary for > alignment reasons. We then free the extra RAM. >=20 > Rework this to avoid the temporary allocation: reserve the > range by mapping it with PROT_NONE, then use just the > necessary range with MAP_FIXED. >=20 > Signed-off-by: Michael S. Tsirkin > Reviewed-by: Paolo Bonzini > Acked-by: Paolo Bonzini > --- > util/oslib-posix.c | 12 ++++++++++-- --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --8PxBlW9FGLoluQl3kVmjNAmMbNp0d6Nb9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJWDpJGAAoJEKeha0olJ0NqmFMH/i7nijIJNaN5LnTjhGo+zIfx CO8qKgGT4+IlKGWyhYi9GnecBcCZnNc3Tn7KtBdOtk051BZd5qlinaxSHZJ1bJk1 JWSMOB8T4Z/mLQgk5J4xukt9dayagMiB8RomZTd5Sm0KwM+mSorMCdfB66cBlxTr LecSNpYqNkXB0Szx+u9usPU0eXoKemovPNgzs+FgfBXo5cz2plp7KhM5TQeqA6Jn /VjPI6iPWIhDWavmKRz8fer2HHYjNuyQCN7W707k+HeLsgev+kM15aYXuunsQ9xJ Acy4n3NxAISkYGzUFGFNO4l/CbMRaObE1BI6UECZUTJkAWe+uh9TVsA5z0yz/0I= =o0CC -----END PGP SIGNATURE----- --8PxBlW9FGLoluQl3kVmjNAmMbNp0d6Nb9--