]> Git Repo - qemu.git/commit - exec.c
Add host_memory_backend_pagesize() helper
authorDavid Gibson <[email protected]>
Tue, 3 Apr 2018 05:05:45 +0000 (15:05 +1000)
committerDavid Gibson <[email protected]>
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 <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
backends/hostmem.c
exec.c
include/sysemu/hostmem.h
target/ppc/kvm.c
This page took 0.027477 seconds and 4 git commands to generate.