]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: entry: Make the trampoline cleanup optional
authorJames Morse <james.morse@arm.com>
Wed, 24 Nov 2021 15:36:12 +0000 (15:36 +0000)
committerJames Morse <james.morse@arm.com>
Tue, 15 Feb 2022 17:38:46 +0000 (17:38 +0000)
commit5b108ef675d4a309a2491a042357cde83a1354ed
tree257c605a5f73b7754ba9b0be9a513f2785185312
parent7ca4d809e7d2863221de3465f46b6f4c3fb926df
arm64: entry: Make the trampoline cleanup optional

Subsequent patches will add additional sets of vectors that use
the same tricks as the kpti vectors to reach the full-fat vectors.
The full-fat vectors contain some cleanup for kpti that is patched
in by alternatives when kpti is in use. Once there are additional
vectors, the cleanup will be needed in more cases.

But on big/little systems, the cleanup would be harmful if no
trampoline vector were in use. Instead of forcing CPUs that don't
need a trampoline vector to use one, make the trampoline cleanup
optional.

Entry at the top of the vectors will skip the cleanup. The trampoline
vectors can then skip the first instruction, triggering the cleanup
to run.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
arch/arm64/kernel/entry.S