Re: [PATCH v3 13/15] util: oslib: Resizeable anonymous allocations under POSIX

2020-02-28 Thread Peter Xu
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

[PATCH v3 13/15] util: oslib: Resizeable anonymous allocations under POSIX

2020-02-27 Thread David Hildenbrand
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(),