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)
commitf88f42f853a80d9b087f0c2035d6fbab504ea54c
tree8bafca2b2aea690b9f05ca3cd32b9b027c2f5228
parentedf90818271b86dcfcc56e0380a8f7fac6eed0cc
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