From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [Bug 50921] kvm hangs booting Windows 2000 Date: Tue, 27 Nov 2012 04:09:59 +0800 Message-ID: <50B3CC97.6000509@linux.vnet.ibm.com> References: <20121124134416.E71CD11F7E2@bugzilla.kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: bugzilla-daemon@bugzilla.kernel.org Return-path: Received: from e23smtp01.au.ibm.com ([202.81.31.143]:44321 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755874Ab2KZUKN (ORCPT ); Mon, 26 Nov 2012 15:10:13 -0500 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Nov 2012 06:06:47 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qAQJxFPd63569940 for ; Tue, 27 Nov 2012 06:59:16 +1100 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qAQKA1SG029962 for ; Tue, 27 Nov 2012 07:10:02 +1100 In-Reply-To: <20121124134416.E71CD11F7E2@bugzilla.kernel.org> Sender: kvm-owner@vger.kernel.org List-ID: On 11/24/2012 09:44 PM, bugzilla-daemon@bugzilla.kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=50921 > > > > > > --- Comment #5 from Lucio Crusca 2012-11-24 13:44:16 --- > Here the first tests results: > > vbox modules do not make a difference (tried rmmod vboxpci vboxnetadp > vboxnetflt vboxdrv and then kvm ...). > > The trace.dat is about 60M, I could upload it somewhere, however I tried > looking at it and I'm reasonably sure it hangs here: > > $ trace-cmd report | grep 125\\.332 | tail > kvm-6588 [000] 125.332264: kvm_entry: vcpu 0 > kvm-6588 [000] 125.332264: kvm_emulate_insn: 10000:44f8: 75 > 27 Hmm... no 'kvm_exit' message. It looks like the infinite loop is caused by: | /* Don't enter VMX if guest state is invalid, let the exit handler | start emulation until we arrive back to a valid state */ | if (vmx->emulation_required && emulate_invalid_guest_state) | return; (vmx_vcpu_run in arch/x86/kvm/vmx.c) And, i noticed 'ept' is not supported on your box, that means 'enable_unrestricted_guest' is disabled. I guess something was wrong when emulate big real mode. Could you reload kvm-intel.ko with 'emulate_invalid_guest_state = 0', and see what will happen.