KVM: arm64: Introduce wrappers for host and hyp spin lock accessors
authorWill Deacon <will@kernel.org>
Wed, 15 Dec 2021 16:12:26 +0000 (16:12 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 12:58:57 +0000 (12:58 +0000)
commit61d99e33e757a21b47b8b130e49dcbdfaa5d2b1c
tree358281777624df34ab82e1bb9da871dda0c158f9
parent3d467f7b8c0a179a10aa4e9f17cd2d3c3b7e5403
KVM: arm64: Introduce wrappers for host and hyp spin lock accessors

In preparation for adding additional locked sections for manipulating
page-tables at EL2, introduce some simple wrappers around the host and
hypervisor locks so that it's a bit easier to read and bit more difficult
to take the wrong lock (or even take them in the wrong order).

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/20211215161232.1480836-10-qperret@google.com
arch/arm64/kvm/hyp/nvhe/mem_protect.c