riscv: Use global mappings for kernel pages
authorGuo Ren <guoren@linux.alibaba.com>
Wed, 26 May 2021 05:49:20 +0000 (05:49 +0000)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Sun, 30 May 2021 01:17:23 +0000 (18:17 -0700)
commitcba43c31f14b08f193ebb5b4a72751b0947436c1
tree256eb70e8cfe3a32bfee547b78d7897d67330e96
parent7fa865f5640a46ed9d3655dd19583fe750e85a8a
riscv: Use global mappings for kernel pages

We map kernel pages into all addresses spages, so they can be marked as
global.  This allows hardware to avoid flushing the kernel mappings when
moving between address spaces.

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
[Palmer: commit text]
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/pgtable.h