|
|
383d26 |
From 7ac01358cfb1a7900cfc4b39714f9affb817dda0 Mon Sep 17 00:00:00 2001
|
|
|
383d26 |
From: David Gibson <dgibson@redhat.com>
|
|
|
383d26 |
Date: Mon, 16 Jul 2018 05:49:55 +0200
|
|
|
383d26 |
Subject: [PATCH 45/89] osdep: powerpc64 align memory to allow 2MB radix THP
|
|
|
383d26 |
page tables
|
|
|
383d26 |
|
|
|
383d26 |
RH-Author: David Gibson <dgibson@redhat.com>
|
|
|
383d26 |
Message-id: <20180716054955.12926-1-dgibson@redhat.com>
|
|
|
383d26 |
Patchwork-id: 81358
|
|
|
383d26 |
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH] osdep: powerpc64 align memory to allow 2MB radix THP page tables
|
|
|
383d26 |
Bugzilla: 1600797
|
|
|
383d26 |
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
|
|
|
383d26 |
RH-Acked-by: Thomas Huth <thuth@redhat.com>
|
|
|
383d26 |
RH-Acked-by: Serhii Popovych <spopovyc@redhat.com>
|
|
|
383d26 |
|
|
|
383d26 |
From: Nicholas Piggin <npiggin@gmail.com>
|
|
|
383d26 |
|
|
|
383d26 |
This allows KVM with the Book3S radix MMU mode to take advantage of
|
|
|
383d26 |
THP and install larger pages in the partition scope page tables (the
|
|
|
383d26 |
host translation).
|
|
|
383d26 |
|
|
|
383d26 |
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
|
|
|
383d26 |
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
|
|
|
383d26 |
(cherry picked from commit 0c1272cc7c72dfe0ef66be8f283cf67c74b58586)
|
|
|
383d26 |
|
|
|
383d26 |
Signed-off-by: David Gibson <dgibson@redhat.com>
|
|
|
383d26 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
383d26 |
---
|
|
|
383d26 |
include/qemu/osdep.h | 3 ++-
|
|
|
383d26 |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
383d26 |
|
|
|
383d26 |
diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h
|
|
|
383d26 |
index afc28e5..9ed6242 100644
|
|
|
383d26 |
--- a/include/qemu/osdep.h
|
|
|
383d26 |
+++ b/include/qemu/osdep.h
|
|
|
383d26 |
@@ -367,7 +367,8 @@ void qemu_anon_ram_free(void *ptr, size_t size);
|
|
|
383d26 |
#endif
|
|
|
383d26 |
|
|
|
383d26 |
#if defined(__linux__) && \
|
|
|
383d26 |
- (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__))
|
|
|
383d26 |
+ (defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) \
|
|
|
383d26 |
+ || defined(__powerpc64__))
|
|
|
383d26 |
/* Use 2 MiB alignment so transparent hugepages can be used by KVM.
|
|
|
383d26 |
Valgrind does not support alignments larger than 1 MiB,
|
|
|
383d26 |
therefore we need special code which handles running on Valgrind. */
|
|
|
383d26 |
--
|
|
|
383d26 |
1.8.3.1
|
|
|
383d26 |
|