]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add hyp_spin_is_locked() for basic locking assertions at EL2
authorWill Deacon <will@kernel.org>
Mon, 9 Aug 2021 15:24:28 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:35 +0000 (11:39 +0100)
commit7911e540adc13925ba28112e5ec39bde49c81263
treec3e61017f835146991d86b43e78ecd3988da0f7e
parent46fdedb8e142295e759d1f9cfef521e8f678bfda
KVM: arm64: Add hyp_spin_is_locked() for basic locking assertions at EL2

Introduce hyp_spin_is_locked() so that functions can easily assert that
a given lock is held (albeit possibly by another CPU!) without having to
drag full lockdep support up to EL2.

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/20210809152448.1810400-2-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/spinlock.h