All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm: initialize SVM spinlock
@ 2017-01-22  9:04 Dmitry Vyukov
  2017-01-23 14:25 ` David Hildenbrand
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Vyukov @ 2017-01-22  9:04 UTC (permalink / raw)
  To: joro, pbonzini, rkrcmar; +Cc: Dmitry Vyukov, kvm, syzkaller

Currently svm_vm_data_hash_lock is left uninitialized.
This causes lockdep warnings. Properly initialize it.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: kvm@vger.kernel.org
Cc: syzkaller@googlegroups.com
---
 arch/x86/kvm/svm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 08a4d3ab3455..b928a9c34987 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -972,7 +972,7 @@ static void svm_disable_lbrv(struct vcpu_svm *svm)
  */
 #define SVM_VM_DATA_HASH_BITS	8
 DECLARE_HASHTABLE(svm_vm_data_hash, SVM_VM_DATA_HASH_BITS);
-static spinlock_t svm_vm_data_hash_lock;
+static DEFINE_SPINLOCK(svm_vm_data_hash_lock);
 
 /* Note:
  * This function is called from IOMMU driver to notify
-- 
2.11.0.483.g087da7b7c-goog

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-01-24 13:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-22  9:04 [PATCH] kvm: initialize SVM spinlock Dmitry Vyukov
2017-01-23 14:25 ` David Hildenbrand
2017-01-23 14:52   ` Dmitry Vyukov
2017-01-23 16:09     ` David Hildenbrand
2017-01-24 11:40       ` Paolo Bonzini
2017-01-24 11:32     ` Paolo Bonzini
2017-01-24 11:34       ` Dmitry Vyukov
2017-01-24 11:40         ` Paolo Bonzini
2017-01-24 13:07           ` Dmitry Vyukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.