util/mmap-alloc: Factor out calculation of the pagesize for the guard page
commitadad0b3ae8446acef0670efaa1e835ba37fca4bc
authorDavid Hildenbrand <david@redhat.com>
Mon, 10 May 2021 11:43:14 +0000 (10 13:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Jun 2021 18:27:37 +0000 (15 20:27 +0200)
tree05ead62d1513920593a96873bbd335ca6bda937f
parentdbb92eea3857ffeb770d006ad0306e408d33dd62
util/mmap-alloc: Factor out calculation of the pagesize for the guard page

Let's factor out calculating the size of the guard page and rename the
variable to make it clearer that this pagesize only applies to the
guard page.

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