From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: qemu-kvm-1.1.0 crashing with kernel 3.5.0-rc6 Date: Sun, 29 Jul 2012 19:34:50 +0300 Message-ID: <5015662A.2000006@redhat.com> References: <4FFAB92C.4030001@googlemail.com> <4FFD26B6.8000802@googlemail.com> <20120711071200.GG23898@redhat.com> <4FFD28B9.9040604@googlemail.com> <20120711072255.GH23898@redhat.com> <50031F85.6020908@googlemail.com> <5007FA1C.5080606@googlemail.com> <5007FAD6.2010407@redhat.com> <500850AD.8080504@googlemail.com> <50111369.6020209@googlemail.com> <50111566.5070202@redhat.com> <501130CF.5050207@googlemail.com> <501132EB.6060705@redhat.com> <5011D123.4060101@googlemail.com> <5012719A.5080208@googlemail.com> <5012E659.7060304@googlemail.com> <50152FC8.20905@redhat.com> <50154294.9040705@googlemail.com> <50154632.7010304@redhat.com> <50155AF4.9050500@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Eric Northup , kvm@vger.kernel.org, Gleb Natapov , Jan Kiszka To: Chris Clayton Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46587 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753271Ab2G2QfC (ORCPT ); Sun, 29 Jul 2012 12:35:02 -0400 In-Reply-To: <50155AF4.9050500@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 07/29/2012 06:47 PM, Avi Kivity wrote: >> What might have happened is that the movdqu instruction faulted (as it's >> an fpu instruction), and on the way back from the fault, ds and es >> didn't get restored correctly. >> >> You can test this by writing a trivial version of g_str_equal() >> somewhere in the qemu source code and rebuilding it. >> >> > > from entry_32.S: > > .macro RESTORE_REGS pop=0 > RESTORE_INT_REGS > 1: popl_cfi %ds > /*CFI_RESTORE ds;*/ > 2: popl_cfi %es > /*CFI_RESTORE es;*/ > 3: popl_cfi %fs > /*CFI_RESTORE fs;*/ > POP_GS \pop > .pushsection .fixup, "ax" > 4: movl $0, (%esp) > jmp 1b > 5: movl $0, (%esp) > jmp 2b > 6: movl $0, (%esp) > jmp 3b > .popsection > > this piece of code tries to restore %ds, and if it fails, zeros it, > which is consistent with the core dump. > > This could happen if kvm is failing to restore GDT correctly. > Possible culprit: b2da15ac26a0c00. -- error compiling committee.c: too many arguments to function