]> 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)
commitd259e03653bc8f9a3498a0835a502174291a0e9b
tree8bafca2b2aea690b9f05ca3cd32b9b027c2f5228
parentac838375400324552220cb31ca6159bcbb3aeeff
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