From: Dmitry Vyukov <dvyukov@google.com>
To: joro@8bytes.org, pbonzini@redhat.com, rkrcmar@redhat.com
Cc: Dmitry Vyukov <dvyukov@google.com>,
kvm@vger.kernel.org, syzkaller@googlegroups.com
Subject: [PATCH] kvm: initialize SVM spinlock
Date: Sun, 22 Jan 2017 10:04:53 +0100 [thread overview]
Message-ID: <20170122090453.88101-1-dvyukov@google.com> (raw)
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
next reply other threads:[~2017-01-22 9:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 9:04 Dmitry Vyukov [this message]
2017-01-23 14:25 ` [PATCH] kvm: initialize SVM spinlock 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170122090453.88101-1-dvyukov@google.com \
--to=dvyukov@google.com \
--cc=joro@8bytes.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=rkrcmar@redhat.com \
--cc=syzkaller@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.