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

Philippe Mathieu-Daudé
2022-10-18T13:53:10Z

On 17/10/22 13:51, Will Deacon wrote:
> From: Fuad Tabba <tabba@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@google.com>
> Signed-off-by: Fuad Tabba <tabba@google.com>
> Signed-off-by: Will Deacon <will@kernel.org>
> ---
> arch/arm64/kvm/hyp/include/nvhe/spinlock.h | 10 +++++++++-
> 1 file changed, 9 insertions(+), 1 deletion(-)

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