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.
> 
> 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.
> 
> Signed-off-by: Michael S. Tsirkin <m...@redhat.com>
> Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>
> Acked-by: Paolo Bonzini <pbonz...@redhat.com>
> ---
>  util/oslib-posix.c | 12 ++++++++++--

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to