diff options
| author | David Gibson | 2018-04-03 07:05:45 +0200 |
|---|---|---|
| committer | David Gibson | 2018-04-27 10:05:22 +0200 |
| commit | 2b10808539d7ace3d9b1226a71a68e2431ef2176 (patch) | |
| tree | 07bc8d753d710a7217bdd6ec69b59b89f417dab7 /linux-user | |
| parent | Make qemu_mempath_getpagesize() accept NULL (diff) | |
| download | qemu-2b10808539d7ace3d9b1226a71a68e2431ef2176.tar.gz qemu-2b10808539d7ace3d9b1226a71a68e2431ef2176.tar.xz qemu-2b10808539d7ace3d9b1226a71a68e2431ef2176.zip | |
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>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions
