diff options
| author | Peter Crosthwaite | 2015-07-06 20:15:12 +0200 |
|---|---|---|
| committer | Alex Williamson | 2015-07-06 20:15:12 +0200 |
| commit | 4e51361d79289aee2985dfed472f8d87bd53a8df (patch) | |
| tree | c5c260b1336f6ba9d7f2dfc1ab927df30e40a6ce /include/exec/exec-all.h | |
| parent | vfio: fix return type of pread (diff) | |
| download | qemu-4e51361d79289aee2985dfed472f8d87bd53a8df.tar.gz qemu-4e51361d79289aee2985dfed472f8d87bd53a8df.tar.xz qemu-4e51361d79289aee2985dfed472f8d87bd53a8df.zip | |
cpu-all: complete "real" host page size API
Currently the "host" page size alignment API is really aligning to both
host and target page sizes. There is the qemu_real_page_size which can
be used for the actual host page size but it's missing a mask and ALIGN
macro as provided for qemu_page_size. Complete the API. This allows
system level code that cares about the host page size to use a
consistent alignment interface without having to un-needingly align to
the target page size. This also reduces system level code dependency
on the cpu specific TARGET_PAGE_SIZE.
Signed-off-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/exec/exec-all.h')
0 files changed, 0 insertions, 0 deletions
