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>
Showing
- exec.c 82 additions, 0 deletionsexec.c
- include/exec/ram_addr.h 1 addition, 0 deletionsinclude/exec/ram_addr.h
- include/qemu/mmap-alloc.h 2 additions, 0 deletionsinclude/qemu/mmap-alloc.h
- target/ppc/kvm.c 5 additions, 104 deletionstarget/ppc/kvm.c
- util/mmap-alloc.c 25 additions, 0 deletionsutil/mmap-alloc.c
Loading
Please register or sign in to comment