exec: Introduce qemu_maxrampagesize() and rename qemu_getrampagesize()
commit905b7ee4d647111d29f29c55618591366321c47a
authorDavid Hildenbrand <david@redhat.com>
Wed, 17 Apr 2019 11:31:43 +0000 (17 13:31 +0200)
committerCornelia Huck <cohuck@redhat.com>
Thu, 25 Apr 2019 11:47:27 +0000 (25 13:47 +0200)
tree6a6f24d13ea03da5071b40ce56934193a095c059
parent9138977b185266e750c9422e554b0c4e7860783f
exec: Introduce qemu_maxrampagesize() and rename qemu_getrampagesize()

Rename qemu_getrampagesize() to qemu_minrampagesize(). While at it,
properly rename find_max_supported_pagesize() to
find_min_backend_pagesize().

s390x is actually interested into the maximum ram pagesize, so
introduce and use qemu_maxrampagesize().

Add a TODO, indicating that looking at any mapped memory backends is not
100% correct in some cases.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20190417113143.5551-3-david@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
exec.c
hw/ppc/spapr_caps.c
hw/s390x/s390-virtio-ccw.c
hw/vfio/spapr.c
include/exec/ram_addr.h
target/ppc/kvm.c