core: replace getpagesize() with qemu_real_host_page_size
commit038adc2f5850e32019bda06c559d0301be436eae
authorWei Yang <richardw.yang@linux.intel.com>
Sun, 13 Oct 2019 02:11:45 +0000 (13 10:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 26 Oct 2019 13:38:06 +0000 (26 15:38 +0200)
tree9eea94c77ab858c6f288121ef1a42796d0b25b9d
parent5608956575088554f7612b716916efafae46187c
core: replace getpagesize() with qemu_real_host_page_size

There are three page size in qemu:

  real host page size
  host page size
  target page size

All of them have dedicate variable to represent. For the last two, we
use the same form in the whole qemu project, while for the first one we
use two forms: qemu_real_host_page_size and getpagesize().

qemu_real_host_page_size is defined to be a replacement of
getpagesize(), so let it serve the role.

[Note] Not fully tested for some arch or device.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20191013021145.16011-3-richardw.yang@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
25 files changed:
accel/kvm/kvm-all.c
backends/hostmem.c
block.c
block/file-posix.c
block/io.c
block/parallels.c
block/qcow2-cache.c
contrib/vhost-user-gpu/vugbm.c
exec.c
hw/intc/s390_flic_kvm.c
hw/ppc/mac_newworld.c
hw/ppc/spapr_pci.c
hw/rdma/vmw/pvrdma_main.c
hw/vfio/spapr.c
include/exec/ram_addr.h
include/qemu/osdep.h
migration/migration.c
migration/postcopy-ram.c
monitor/misc.c
target/ppc/kvm.c
tests/vhost-user-bridge.c
util/mmap-alloc.c
util/oslib-posix.c
util/oslib-win32.c
util/vfio-helpers.c