qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PULL 04/15] oslib: rework anonimous RAM allocation


From: Eric Blake
Subject: Re: [Qemu-devel] [PULL 04/15] oslib: rework anonimous RAM allocation
Date: Fri, 2 Oct 2015 08:18:46 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0

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 <address@hidden>
> Reviewed-by: Paolo Bonzini <address@hidden>
> Acked-by: Paolo Bonzini <address@hidden>
> ---
>  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

[Prev in Thread] Current Thread [Next in Thread]