Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752802AbZGBAEl (ORCPT ); Wed, 1 Jul 2009 20:04:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751710AbZGBAEc (ORCPT ); Wed, 1 Jul 2009 20:04:32 -0400 Received: from mail-qy0-f193.google.com ([209.85.221.193]:45863 "EHLO mail-qy0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750715AbZGBAEb convert rfc822-to-8bit (ORCPT ); Wed, 1 Jul 2009 20:04:31 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=CaNEHDMsG/i9jeqA2dxXjCK5v0q9FaqdPawpu9AN8HT6oN3N5rwcySubFOahxdr5/v ERPOmR/7XioVV04cXvF7xEwwbUTU+pQ+PIOEklJQGMCxuXOPZ0nUrEB9rMtmML294lxK 1Q+pt0zRNx70+PB3gUfZBnOSOtNYXpvS77GJI= MIME-Version: 1.0 In-Reply-To: <4A4B1522.1090000@redhat.com> References: <86802c440906302118oa181b2fm9599137bb2314129@mail.gmail.com> <4A4B1522.1090000@redhat.com> Date: Wed, 1 Jul 2009 16:58:01 -0700 Message-ID: <86802c440907011658w861e7b8od17763c1b3c3d519@mail.gmail.com> Subject: Re: pci_stub and kvm From: Yinghai Lu To: Avi Kivity Cc: Ingo Molnar , jbarnes@virtuousgeek.org, Linux Kernel Mailing List , linux-pci@vger.kernel.org, Marcelo Tosatti , KVM list , Sheng Yang Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2999 Lines: 58 On Wed, Jul 1, 2009 at 12:49 AM, Avi Kivity wrote: > On 07/01/2009 07:18 AM, Yinghai Lu wrote: >> >> [ 1966.343286] >> [ 1966.343288] ======================================================= >> [ 1966.356756] [ INFO: possible circular locking dependency detected ] >> [ 1966.356759] 2.6.31-rc1-tip-00978-g99123e5-dirty #438 >> [ 1966.356761] ------------------------------------------------------- >> [ 1966.356764] events/0/387 is trying to acquire lock: >> [ 1966.356766] ?(&kvm->lock){+.+.+.}, at: [] >> kvm_assigned_dev_interrupt_work_handler+0x42/0x13a >> [ 1966.356786] >> [ 1966.356787] but task is already holding lock: >> [ 1966.356789] ?(&match->interrupt_work){+.+...}, at: >> [] worker_thread+0x175/0x2f6 >> [ 1966.356797] >> [ 1966.356798] which lock already depends on the new lock. >> [ 1966.356799] >> [ 1966.356800] >> [ 1966.356801] the existing dependency chain (in reverse order) is: >> [ 1966.356803] >> [ 1966.356803] -> ?#1 (&match->interrupt_work){+.+...}: >> [ 1966.356809] ? ? ? ?[] __lock_acquire+0x1396/0x1710 >> [ 1966.356817] ? ? ? ?[] lock_acquire+0xcc/0x104 >> [ 1966.356821] ? ? ? ?[] __cancel_work_timer+0x121/0x247 >> [ 1966.356825] ? ? ? ?[] cancel_work_sync+0x23/0x39 >> [ 1966.356828] ? ? ? ?[] kvm_deassign_irq+0xf1/0x183 >> [ 1966.356832] ? ? ? ?[] kvm_vm_ioctl+0x8c8/0xc1a >> [ 1966.356837] ? ? ? ?[] vfs_ioctl+0x3e/0xa3 >> [ 1966.356846] ? ? ? ?[] do_vfs_ioctl+0x4be/0x511 >> [ 1966.356850] ? ? ? ?[] sys_ioctl+0x56/0x8d >> [ 1966.356854] ? ? ? ?[] system_call_fastpath+0x16/0x1b >> [ 1966.356860] ? ? ? ?[] 0xffffffffffffffff >> [ 1966.356869] >> [ 1966.356870] -> ?#0 (&kvm->lock){+.+.+.}: >> [ 1966.356872] ? ? ? ?[] __lock_acquire+0x10cb/0x1710 >> [ 1966.356875] ? ? ? ?[] lock_acquire+0xcc/0x104 >> [ 1966.356878] ? ? ? ?[] mutex_lock_nested+0x75/0x2fa >> [ 1966.356886] ? ? ? ?[] >> kvm_assigned_dev_interrupt_work_handler+0x42/0x13a >> [ 1966.356890] ? ? ? ?[] worker_thread+0x1cf/0x2f6 >> [ 1966.356892] ? ? ? ?[] kthread+0xa8/0xb0 >> [ 1966.356899] ? ? ? ?[] child_rip+0xa/0x20 >> [ 1966.356906] ? ? ? ?[] 0xffffffffffffffff >> > > This is already fixed in kvm.git. ?I'm not sure about merging it to 2.6.30 > since the race is very rare and involves device assignment (which is not > very mainstream), while the fix touches the core kvm parts. tip/master merged with kvm/master doesn't have that warning. YH -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/