aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/osdep.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-05-06 17:29:49 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2018-06-12 10:44:36 +1000
commit0c1272cc7c72dfe0ef66be8f283cf67c74b58586 (patch)
tree3f36f2af0b5eb343c06ffb893c83e1ef29905b84 /include/qemu/osdep.h
parentefe2add7cb7f870ebd90ac4f9637161a4821200a (diff)
downloadqemu-0c1272cc7c72dfe0ef66be8f283cf67c74b58586.zip
qemu-0c1272cc7c72dfe0ef66be8f283cf67c74b58586.tar.gz
qemu-0c1272cc7c72dfe0ef66be8f283cf67c74b58586.tar.bz2
osdep: powerpc64 align memory to allow 2MB radix THP page tables
This allows KVM with the Book3S radix MMU mode to take advantage of THP and install larger pages in the partition scope page tables (the host translation). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/qemu/osdep.h')
-rw-r--r--include/qemu/osdep.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
index afc28e5..9ed6242 100644
--- a/include/qemu/osdep.h
+++ b/include/qemu/osdep.h
@@ -367,7 +367,8 @@ void qemu_anon_ram_free(void *ptr, size_t size);
#endif
#if defined(__linux__) && \
- (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__))
+ (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) \
+ || defined(__powerpc64__))
/* Use 2 MiB alignment so transparent hugepages can be used by KVM.
Valgrind does not support alignments larger than 1 MiB,
therefore we need special code which handles running on Valgrind. */