From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 38B7F1A019A for ; Tue, 28 Oct 2014 20:02:41 +1100 (AEDT) Received: by mail-wg0-f45.google.com with SMTP id x12so256153wgg.28 for ; Tue, 28 Oct 2014 02:02:38 -0700 (PDT) Sender: Paolo Bonzini Message-ID: <544F5BA8.5020100@redhat.com> Date: Tue, 28 Oct 2014 10:02:32 +0100 From: Paolo Bonzini MIME-Version: 1.0 To: "Aneesh Kumar K.V" , "kvm-ppc@vger.kernel.org" , Paul Mackerras , linuxppc-dev Subject: Re: lockdep warning with 2d65a9f48fcdf7866aab6457bc707ca233e0c791 References: <87d29tkzsi.fsf@linux.vnet.ibm.com> In-Reply-To: <87d29tkzsi.fsf@linux.vnet.ibm.com> Content-Type: text/plain; charset=windows-1252 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 10/15/2014 07:28 PM, Aneesh Kumar K.V wrote: > > ============================================= > [ INFO: possible recursive locking detected ] > 3.17.0+ #31 Not tainted > --------------------------------------------- > qemu-system-ppc/9112 is trying to acquire lock: > (&(&vcpu->arch.tbacct_lock)->rlock){......}, at: [] .vcore_stolen_time+0x44/0xb0 [kvm_hv] > > but task is already holding lock: > (&(&vcpu->arch.tbacct_lock)->rlock){......}, at: [] .kvmppc_remove_runnable.part.2+0x34/0xd0 [kvm_hv] This must come from here: while (vcpu->arch.state == KVMPPC_VCPU_RUNNABLE && (vc->vcore_state == VCORE_RUNNING || vc->vcore_state == VCORE_EXITING)) { spin_unlock(&vc->lock); kvmppc_wait_for_exec(vcpu, TASK_UNINTERRUPTIBLE); spin_lock(&vc->lock); } if (vcpu->arch.state == KVMPPC_VCPU_RUNNABLE) { kvmppc_remove_runnable(vc, vcpu); vcpu->stat.signal_exits++; kvm_run->exit_reason = KVM_EXIT_INTR; vcpu->arch.ret = -EINTR; } if vc->vcore_state is VCORE_SLEEPING (I think it cannot be VCORE_STARTING)? Paolo