Files
kernel_google_redbull/arch/x86/include/asm
Rick Edgecombe 90c288bc0b BACKPORT: x86/mm/cpa: Add set_direct_map_*() functions
Add two new functions set_direct_map_default_noflush() and
set_direct_map_invalid_noflush() for setting the direct map alias for the
page to its default valid permissions and to an invalid state that cannot
be cached in a TLB, respectively. These functions do not flush the TLB.

Note, __kernel_map_pages() does something similar but flushes the TLB and
doesn't reset the permission bits to default on all architectures.

Also add an ARCH config ARCH_HAS_SET_DIRECT_MAP for specifying whether
these have an actual implementation or a default empty one.

Change-Id: I0f5c4b3cac1c937ccab68c3278ce8ea3ca833032
Signed-off-by: Rick Edgecombe <rick.p.edgecombe@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: <akpm@linux-foundation.org>
Cc: <ard.biesheuvel@linaro.org>
Cc: <deneen.t.dock@intel.com>
Cc: <kernel-hardening@lists.openwall.com>
Cc: <kristen@linux.intel.com>
Cc: <linux_dti@icloud.com>
Cc: <will.deacon@arm.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nadav Amit <nadav.amit@gmail.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190426001143.4983-15-namit@vmware.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2025-09-08 17:20:25 +03:00
..
2018-02-15 01:15:50 +01:00
2018-07-25 11:53:59 +02:00
2019-08-06 20:09:06 +02:00
2018-03-20 10:01:57 +01:00
2018-05-19 13:55:40 +02:00
2023-07-24 19:11:51 +02:00
2021-02-07 14:48:37 +01:00
2019-10-17 13:45:43 -07:00
2018-05-07 07:15:41 +02:00
2018-10-14 11:11:22 +02:00
2018-07-20 01:11:45 +02:00
2018-03-20 10:01:57 +01:00
2020-11-16 07:43:08 +01:00