]> git.proxmox.com Git - mirror_qemu.git/commit - include/sysemu/hostmem.h
Add host_memory_backend_pagesize() helper
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 3 Apr 2018 05:05:45 +0000 (15:05 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commit2b10808539d7ace3d9b1226a71a68e2431ef2176
tree07bc8d753d710a7217bdd6ec69b59b89f417dab7
parent0de6e2a3ca2e1215a2d62d8d796589d27eca91d0
Add host_memory_backend_pagesize() helper

There are a couple places (one generic, one target specific) where we need
to get the host page size associated with a particular memory backend.  I
have some upcoming code which will add another place which wants this.  So,
for convenience, add a helper function to calculate this.

host_memory_backend_pagesize() returns the host pagesize for a given
HostMemoryBackend object.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
backends/hostmem.c
exec.c
include/sysemu/hostmem.h
target/ppc/kvm.c