]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: mm: Allocate ASIDs in pairs
authorWill Deacon <will.deacon@arm.com>
Thu, 10 Aug 2017 13:10:28 +0000 (14:10 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:45 +0000 (08:15 -0600)
commit3a67a32a0cc333e5d81c64257aca0f1ead6dc7de
tree4696d7cf90d3351d826b784f7e072b1712bdfb7a
parent7a7e2f4d1bfcf3c00a668a0c87ba1a8696042c00
arm64: mm: Allocate ASIDs in pairs

BugLink: http://bugs.launchpad.net/bugs/1751064
Commit 0c8ea531b774 upstream.

In preparation for separate kernel/user ASIDs, allocate them in pairs
for each mm_struct. The bottom bit distinguishes the two: if it is set,
then the ASID will map only userspace.

Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Laura Abbott <labbott@redhat.com>
Tested-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
arch/arm64/include/asm/mmu.h
arch/arm64/mm/context.c