Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755330Ab0KIKil (ORCPT ); Tue, 9 Nov 2010 05:38:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49553 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755000Ab0KIKij (ORCPT ); Tue, 9 Nov 2010 05:38:39 -0500 Message-ID: <4CD9249B.2090803@redhat.com> Date: Tue, 09 Nov 2010 12:38:19 +0200 From: Avi Kivity User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.6 MIME-Version: 1.0 To: Jan Kiszka CC: Markus Trippelsdorf , kvm , Linux Kernel Mailing List , Marcelo Tosatti , "Paul E. McKenney" Subject: Re: [kvm.git & 2.6.37-rc1] KVM deadlock with CONFIG_PREEMPT host References: <4CD7BD00.2020703@siemens.com> <20101108091849.GC3975@arch.trippelsdorf.de> <4CD7D0B2.80600@siemens.com> In-Reply-To: <4CD7D0B2.80600@siemens.com> 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: 2223 Lines: 50 On 11/08/2010 12:28 PM, Jan Kiszka wrote: > Am 08.11.2010 10:18, Markus Trippelsdorf wrote: > > On Mon, Nov 08, 2010 at 10:04:00AM +0100, Jan Kiszka wrote: > >> Hi, > >> > >> I'm seeing lock-ups of the QEMU process on kvm.git as well as current > >> upstream kernels. This is a backtrace of the hanging VCPU thread: > >> > >> [] __stop_cpus+0x184/0x1a7 > >> [] try_stop_cpus+0x40/0x59 > >> [] synchronize_sched_expedited+0x84/0x9d > >> [] __synchronize_srcu+0x33/0x72 > >> [] synchronize_srcu_expedited+0x15/0x17 > >> [] __kvm_set_memory_region+0x6a3/0x782 [kvm] > >> [] kvm_set_memory_region+0x37/0x50 [kvm] > >> [] kvm_vm_ioctl_set_memory_region+0x18/0x1a [kvm] > >> [] kvm_vm_ioctl+0x22d/0x3b1 [kvm] > >> [] do_vfs_ioctl+0x5a1/0x5e2 > >> [] sys_ioctl+0x56/0x79 > >> [] system_call_fastpath+0x16/0x1b > >> [] 0xffffffffffffffff > >> > >> This issue disappears when disabling CONFIG_PREEMPT on the host. > >> According to some rough bisecting, it was imported into kvm.git with > >> merge 146d3bb06b. Given that RCU is involved, I also tried > >> force-enabling non-preemptible CONFIG_TREE_RCU again, but that made no > >> difference as long as PREEMPT is on. > >> > >> Can anyone confirm this or does someone have an idea what goes wrong? Of > >> course, .config will be provided if required. > > > > This patch should help (,it fixes the problem in my case): > > http://article.gmane.org/gmane.linux.kernel/1058018 > > Yeah, that works here as well. > > Would be a nice-to-have in kvm.git until it's pull via the next upstream > merge. At least for me this bug triggers at every VM boot. > I just did so. Testing with CONFIG_PREEMPT is important. -- error compiling committee.c: too many arguments to function -- 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/