x86: KVM: SVM: use kvm_lock_all_vcpus instead of a custom implementation
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 12 May 2025 18:04:05 +0000 (14:04 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 May 2025 16:16:41 +0000 (12:16 -0400)
commitc560bc9286e66713819c2f30b9ff32ee79d7f75e
treef5698b9faf5237fc6550fbeb4aaaac81faa48402
parente4a454ced74c0ac97c8bd32f086ee3ad74528780
x86: KVM: SVM: use kvm_lock_all_vcpus instead of a custom implementation

Use kvm_lock_all_vcpus instead of sev's own implementation.

Because kvm_lock_all_vcpus uses the _nest_lock feature of lockdep, which
ignores subclasses, there is no longer a need to use separate subclasses
for source and target VMs.

No functional change intended.

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Message-ID: <20250512180407.659015-5-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c