OSDN Git Service

util/mmap-alloc: Factor out reserving of a memory region to mmap_reserve()
authorDavid Hildenbrand <david@redhat.com>
Mon, 10 May 2021 11:43:15 +0000 (13:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 18:27:37 +0000 (20:27 +0200)
commit01c26ad6affae8c00279f5cc8e1af4d6aac004ce
tree865aeae4d559c63eac2bd9e97b75458efc77d8e4
parentadad0b3ae8446acef0670efaa1e835ba37fca4bc
util/mmap-alloc: Factor out reserving of a memory region to mmap_reserve()

We want to reserve a memory region without actually populating memory.
Let's factor that out.

Reviewed-by: Igor Kotrasinski <i.kotrasinsk@partner.samsung.com>
Acked-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com> for memory backend and machine core
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210510114328.21835-3-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/mmap-alloc.c