Skip to content

Commit 40099de

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
KVM: arm64: Do not re-initialize the KVM lock
The lock is already initialized in core KVM code at kvm_create_vm(). Fixes: 9d0c063 ("KVM: arm64: Instantiate pKVM hypervisor VM and vCPU structures from EL1") Signed-off-by: Fuad Tabba <tabba@google.com> Acked-by: Oliver Upton <oliver.upton@linux.dev> Link: https://lore.kernel.org/r/20240423150538.2103045-5-tabba@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent f11290e commit 40099de

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/arm64/kvm/pkvm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ void pkvm_destroy_hyp_vm(struct kvm *host_kvm)
222222

223223
int pkvm_init_host_vm(struct kvm *host_kvm)
224224
{
225-
mutex_init(&host_kvm->lock);
226225
return 0;
227226
}
228227

0 commit comments

Comments
 (0)