arm64: head: split off idmap creation code
authorArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 15:06:37 +0000 (17:06 +0200)
committerWill Deacon <will@kernel.org>
Fri, 24 Jun 2022 16:18:09 +0000 (17:18 +0100)
commite42ade29e3bcb32049da298d2927522c104abae9
tree6519e3b4830396cace1a152e7ee44d5aab54420e
parent50fcd39d24c24bb86d695c93ad41fccfed1fc7ac
arm64: head: split off idmap creation code

Split off the creation of the ID map page tables, so that we can avoid
running it again unnecessarily when KASLR is in effect (which only
randomizes the virtual placement). This will permit us to drop some
explicit cache maintenance to the PoC which was necessary because the
cache invalidation being performed on some global variables might
otherwise clobber unrelated variables that happen to share a cacheline.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20220624150651.1358849-8-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/head.S