On Thu, Feb 27, 2020 at 11:12:03AM +0100, David Hildenbrand wrote:
> Introduce qemu_anon_ram_alloc_resizeable() and qemu_anon_ram_resize().
> Implement them under POSIX and make them return NULL under WIN32.
> 
> Under POSIX, we make use of resizeable mmaps. An implementation under
> WIN32 is theoretically possible AFAIK and can be added later.
> 
> In qemu_anon_ram_free(), rename the size parameter to max_size, to make
> it clearer that we have to use the maximum size when freeing resizeable
> anonymous allocations.
> 
> Cc: Richard Henderson <[email protected]>
> Cc: Paolo Bonzini <[email protected]>
> Cc: "Dr. David Alan Gilbert" <[email protected]>
> Cc: Eduardo Habkost <[email protected]>
> Cc: Marcel Apfelbaum <[email protected]>
> Cc: Stefan Weil <[email protected]>
> Cc: Igor Mammedov <[email protected]>
> Signed-off-by: David Hildenbrand <[email protected]>

Reviewed-by: Peter Xu <[email protected]>

-- 
Peter Xu


Reply via email to