Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754562AbZDNIVJ (ORCPT ); Tue, 14 Apr 2009 04:21:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752011AbZDNIUz (ORCPT ); Tue, 14 Apr 2009 04:20:55 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58529 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751805AbZDNIUy (ORCPT ); Tue, 14 Apr 2009 04:20:54 -0400 Message-ID: <49E44755.3090401@redhat.com> Date: Tue, 14 Apr 2009 11:20:37 +0300 From: Avi Kivity User-Agent: Thunderbird 2.0.0.21 (X11/20090320) MIME-Version: 1.0 To: Peter Zijlstra CC: Luis Henriques , Ingo Molnar , linux-kernel@vger.kernel.org, Andrea Arcangeli Subject: Re: Problem with kvm on -tip References: <20090409210738.GA4566@hades.domain.com> <49E08857.2090503@redhat.com> <1239695925.21985.6738.camel@twins> In-Reply-To: <1239695925.21985.6738.camel@twins> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2089 Lines: 48 Peter Zijlstra wrote: > On Sat, 2009-04-11 at 15:08 +0300, Avi Kivity wrote: > >>> [ 3293.134688] BUG: MAX_LOCK_DEPTH too low! >>> >>> >> Looks like a genuine issue, need to increase MAX_LOCK_DEPTH. Andrea? >> >> >>> [ 3293.134704] turning off the locking correctness validator. >>> [ 3293.134718] Pid: 5117, comm: kvm Not tainted 2.6.30-rc1-tip-01420-g58e70a8 >>> #18 >>> [ 3293.134727] Call Trace: >>> [ 3293.134749] [] __lock_acquire+0x4c6/0xbf0 >>> [ 3293.134764] [] lock_acquire+0x10e/0x160 >>> [ 3293.134780] [] ? mm_take_all_locks+0x110/0x150 >>> [ 3293.134798] [] _spin_lock_nest_lock+0x3b/0x50 >>> [ 3293.134811] [] ? mm_take_all_locks+0x110/0x150 >>> [ 3293.134823] [] mm_take_all_locks+0x110/0x150 >>> [ 3293.134838] [] do_mmu_notifier_register+0xdf/0x1f0 >>> [ 3293.134852] [] mmu_notifier_register+0x13/0x20 >>> [ 3293.134899] [] kvm_dev_ioctl+0x1ae/0x360 [kvm] >>> [ 3293.134914] [] vfs_ioctl+0x36/0xb0 >>> [ 3293.134927] [] do_vfs_ioctl+0x92/0x5c0 >>> [ 3293.134942] [] ? up_read+0x2b/0x40 >>> [ 3293.134955] [] sys_ioctl+0x4f/0x80 >>> [ 3293.134971] [] system_call_fastpath+0x16/0x1b request >>> > > Thing is, its grabbing all vma locks, and we have a lock depth limit of > 48. Now when we started this, the claim was that kvm would only need > this when the process was very fresh and would thus not yet have many > vma, ergo we should never run into this limit. > > Has that changed? > Hasn't changed; this is on VM creation. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain. -- 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/