summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/arm.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2021-03-19 13:01:11 +0300
committerMarc Zyngier <maz@kernel.org>2021-03-19 15:01:19 +0300
commit67c2d326332ee28079348e43cf4f17bbfe63b260 (patch)
treeabb7c5e42e7e5a70ebfd502a578853a8b4f47157 /arch/arm64/kvm/arm.c
parent7b4a7b5e6fefd15f708f959dd43e188444e252ec (diff)
downloadlinux-67c2d326332ee28079348e43cf4f17bbfe63b260.tar.xz
arm64: kvm: Add standalone ticket spinlock implementation for use at hyp
We will soon need to synchronise multiple CPUs in the hyp text at EL2. The qspinlock-based locking used by the host is overkill for this purpose and relies on the kernel's "percpu" implementation for the MCS nodes. Implement a simple ticket locking scheme based heavily on the code removed by commit c11090474d70 ("arm64: locking: Replace ticket lock implementation with qspinlock"). Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Quentin Perret <qperret@google.com> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20210319100146.1149909-4-qperret@google.com
Diffstat (limited to 'arch/arm64/kvm/arm.c')
0 files changed, 0 insertions, 0 deletions