]> Git Repo - qemu.git/commitdiff
osdep: powerpc64 align memory to allow 2MB radix THP page tables
authorNicholas Piggin <[email protected]>
Sun, 6 May 2018 07:29:49 +0000 (17:29 +1000)
committerDavid Gibson <[email protected]>
Tue, 12 Jun 2018 00:44:36 +0000 (10:44 +1000)
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 <[email protected]>
Signed-off-by: David Gibson <[email protected]>
include/qemu/osdep.h

index afc28e5903b70b7ddfd49b2eacb80f4c50690f9a..9ed62423c0326cc178e072946e201812967de59c 100644 (file)
@@ -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. */
This page took 0.026972 seconds and 4 git commands to generate.