Re: [PATCH RFC v3 4/9] mm: Export alloc_contig_range() / free_contig_range()

2019-10-16 Thread David Hildenbrand
On 16.10.19 13:20, Michal Hocko wrote: On Thu 19-09-19 16:22:23, David Hildenbrand wrote: A virtio-mem device wants to allocate memory from the memory region it manages in order to unplug it in the hypervisor - similar to a balloon driver. Also, it might want to plug previously unplugged

Re: [PATCH RFC v3 4/9] mm: Export alloc_contig_range() / free_contig_range()

2019-10-16 Thread Michal Hocko
On Thu 19-09-19 16:22:23, David Hildenbrand wrote: > A virtio-mem device wants to allocate memory from the memory region it > manages in order to unplug it in the hypervisor - similar to > a balloon driver. Also, it might want to plug previously unplugged > (allocated) memory and give it back to

[PATCH RFC v3 4/9] mm: Export alloc_contig_range() / free_contig_range()

2019-09-19 Thread David Hildenbrand
A virtio-mem device wants to allocate memory from the memory region it manages in order to unplug it in the hypervisor - similar to a balloon driver. Also, it might want to plug previously unplugged (allocated) memory and give it back to Linux. alloc_contig_range() / free_contig_range() seem to be