]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: context: Free up kernel ASIDs if KPTI is not in use
authorVladimir Murzin <vladimir.murzin@arm.com>
Tue, 7 Jan 2020 10:28:03 +0000 (10:28 +0000)
committerWill Deacon <will@kernel.org>
Thu, 16 Jan 2020 12:45:05 +0000 (12:45 +0000)
commit37764792c08757452fc88be3ccffcff79d1e96cc
tree8bafca2b2aea690b9f05ca3cd32b9b027c2f5228
parent78ee03af78cd2ef9598d8d36b57428551c124e89
arm64: context: Free up kernel ASIDs if KPTI is not in use

We can extend user ASID space if it turns out that system does not
require KPTI. We start with kernel ASIDs reserved because CPU caps are
not finalized yet and free them up lazily on the next rollover if we
confirm than KPTI is not in use.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/mm/context.c