[PATCH v4 10/25] KVM: arm64: Add hyp_spinlock_t static initializer

Philippe Mathieu-Daudé philmd at linaro.org
Tue Oct 18 06:51:49 PDT 2022


On 17/10/22 13:51, Will Deacon wrote:
> From: Fuad Tabba <tabba at google.com>
> 
> Introduce a static initializer macro for 'hyp_spinlock_t' so that it is
> straightforward to instantiate global locks at EL2. This will be later
> utilised for locking the VM table in the hypervisor.
> 
> Tested-by: Vincent Donnefort <vdonnefort at google.com>
> Signed-off-by: Fuad Tabba <tabba at google.com>
> Signed-off-by: Will Deacon <will at kernel.org>
> ---
>   arch/arm64/kvm/hyp/include/nvhe/spinlock.h | 10 +++++++++-
>   1 file changed, 9 insertions(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd at linaro.org>



More information about the linux-arm-kernel mailing list