exec, kvm, target-ppc: Move getrampagesize() to common code
commit9c60766887c647df7193463f7a2075e8993b514c
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 2 Mar 2017 02:36:11 +0000 (2 13:36 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 3 Mar 2017 00:30:59 +0000 (3 11:30 +1100)
tree8c6c4797388c2b03226e7e5871531646234d0f1f
parent9b44c836dc37507513eb67cea862f82dafa249d8
exec, kvm, target-ppc: Move getrampagesize() to common code

getrampagesize() returns the largest supported page size and mainly
used to know if huge pages are enabled.

However is implemented in target-ppc/kvm.c and not available
in TCG or other architectures.

This renames and moves gethugepagesize() to mmap-alloc.c where
fd-based analog of it is already implemented. This renames and moves
getrampagesize() to exec.c as it seems to be the common place for
helpers like this.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
exec.c
include/exec/ram_addr.h
include/qemu/mmap-alloc.h
target/ppc/kvm.c
util/mmap-alloc.c