]> git.proxmox.com Git - mirror_qemu.git/commit - bsd-user/mmap.c
Replace qemu_real_host_page variables with inlined functions
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 23 Mar 2022 15:57:22 +0000 (19:57 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 6 Apr 2022 08:50:38 +0000 (10:50 +0200)
commit8e3b0cbb7212a1e5707ed2d4c26b4e3d2483768d
treefe73195ef7adcea2745f6f31502264157be476c2
parentb307e5052d5c09a2bb71b1670c14ca4fc44ea33f
Replace qemu_real_host_page variables with inlined functions

Replace the global variables with inlined helper functions. getpagesize() is very
likely annotated with a "const" function attribute (at least with glibc), and thus
optimization should apply even better.

This avoids the need for a constructor initialization too.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220323155743.1585078-12-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
53 files changed:
accel/hvf/hvf-accel-ops.c
accel/kvm/kvm-all.c
backends/hostmem.c
block.c
block/file-posix.c
block/io.c
block/nvme.c
block/parallels.c
block/qcow2-cache.c
bsd-user/elfload.c
bsd-user/mmap.c
contrib/vhost-user-gpu/vugbm.c
cpu.c
hw/display/qxl.c
hw/intc/s390_flic_kvm.c
hw/nvram/fw_cfg.c
hw/ppc/mac_newworld.c
hw/ppc/spapr_pci.c
hw/rdma/vmw/pvrdma_main.c
hw/scsi/scsi-generic.c
hw/tpm/tpm_ppi.c
hw/vfio/common.c
hw/vfio/pci.c
hw/vfio/spapr.c
hw/virtio/vhost-iova-tree.c
hw/virtio/vhost-shadow-virtqueue.c
hw/virtio/vhost-user.c
hw/virtio/vhost-vdpa.c
hw/virtio/virtio-mem.c
include/exec/cpu-common.h
include/exec/ram_addr.h
include/qemu/osdep.h
linux-user/elfload.c
linux-user/mmap.c
migration/migration.c
migration/postcopy-ram.c
monitor/misc.c
scripts/checkpatch.pl
softmmu/physmem.c
target/i386/hax/hax-mem.c
target/i386/nvmm/nvmm-all.c
target/i386/whpx/whpx-all.c
target/ppc/kvm.c
tcg/region.c
tests/vhost-user-bridge.c
util/cutils.c
util/meson.build
util/mmap-alloc.c
util/osdep.c
util/oslib-posix.c
util/oslib-win32.c
util/pagesize.c [deleted file]
util/vfio-helpers.c