Re: [PATCH 04/24] x86/mm/kaiser: Unmap kernel mappings from userspace page tables, core patch

From: Peter Zijlstra
Date: Mon Nov 27 2017 - 10:39:20 EST



So I had the problem that I could not tell if my shiny new kernel had
this brand spanking awesome feature enabled or not.

Do we want something like so?

---
arch/x86/mm/kaiser.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/x86/mm/kaiser.c b/arch/x86/mm/kaiser.c
index 0ff502fa655b..655349e0b5fb 100644
--- a/arch/x86/mm/kaiser.c
+++ b/arch/x86/mm/kaiser.c
@@ -425,6 +425,8 @@ void __init kaiser_init(void)
if (!kaiser_enabled)
return;

+ pr_info("All your KAISER are belong to us.\n");
+
kaiser_init_all_pgds();

for_each_possible_cpu(cpu) {