]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit927b1331ca7ed791a3be04719f7918e183d4f1c4
tree358281777624df34ab82e1bb9da871dda0c158f9
parent5754a1c5fa62be5801c7855fc7f82cdc9a4d10a6
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