Home
last modified time | relevance | path

Searched hist:"2 b10808539d7ace3d9b1226a71a68e2431ef2176" (Results 1 – 3 of 3) sorted by relevance

/qemu/include/system/
H A Dhostmem.h2b10808539d7ace3d9b1226a71a68e2431ef2176 Tue Apr 03 05:05:45 UTC 2018 David Gibson <david@gibson.dropbear.id.au> 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>
/qemu/backends/
H A Dhostmem.c2b10808539d7ace3d9b1226a71a68e2431ef2176 Tue Apr 03 05:05:45 UTC 2018 David Gibson <david@gibson.dropbear.id.au> 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>
/qemu/target/ppc/
H A Dkvm.c2b10808539d7ace3d9b1226a71a68e2431ef2176 Tue Apr 03 05:05:45 UTC 2018 David Gibson <david@gibson.dropbear.id.au> 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>