Thread (8 messages) 8 messages, 5 authors, 2017-08-07

Re: [PATCH -rt] kvm: lockdep annotate mmu_lock wait_lock

From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: 2017-08-07 13:35:09
Also in: kvm

On 2017-07-18 09:03:47 [-0300], Marcelo Tosatti wrote:
wait_lock for mmu_lock, being allocated in kmalloc memory,
can't be tracked by LOCKDEP. 
there is:
	struct kvm *kvm = kvm_arch_alloc_vm(); 

	spin_lock_init(&kvm->mmu_lock);

and kvm_arch_alloc_vm() itself is "kzalloc(sizeof(struct kvm),
GFP_KERNEL);". I don't see anything wrong with it. This does not explain
why this lockdep warning.
Disable LOCKDEP verification for it.

Fixes
 INFO: trying to register non-static key.
 the code is fine but needs lockdep annotation.
 turning off the locking correctness validator.
not convinced. 
 CPU: 0 PID: 12386 Comm: qemu-kvm Not tainted 3.10.0-631.rt56.546.el7.x86_64.debug #1
oh.

Sebastian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help