From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20sg-0000kK-RS for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:21:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V20sd-00053A-KY for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:21:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V20sd-000532-D8 for qemu-devel@nongnu.org; Wed, 24 Jul 2013 11:21:31 -0400 Date: Wed, 24 Jul 2013 18:21:25 +0300 From: Gleb Natapov Message-ID: <20130724152125.GI16400@redhat.com> References: <51AD8D88.70104@redhat.com> <20130604075107.GJ4725@redhat.com> <3B8B589E-4019-4AEE-A846-1A3F45A2EB4D@suse.de> <51EFEFB9.7020905@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51EFEFB9.7020905@redhat.com> Subject: Re: [Qemu-devel] VM can not boot after commit 235e898 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Anthony Liguori , Jordan Justen , Alexander Graf , Dunrong Huang , qemu-devel Developers , Hannes Reinecke , Jordan Justen On Wed, Jul 24, 2013 at 05:16:09PM +0200, Paolo Bonzini wrote: > Il 24/07/2013 11:58, Alexander Graf ha scritto: > >> > No QEMU or kvm crashes, no error message printed, I mean it just hangs, even no BIOS information are printed. > >> > And "top" shows QEMU consumes 100% cpu. > >> > > >> > When I define DEBUG_KVM in kvm-all.c, and run QEMU(this time I boot a normal OS disk), > >> > # x86_64-softmmu/qemu-system-x86_64 -enable-kvm -hda /mnt/nfs/Images/debian-append.img > >> > kvm_init_vcpu > >> > kvm_cpu_exec() > >> > handle_io > >> > handle_io > >> > handle_io > >> > handle_io > >> > > >> > Only 4 debug messages(handle_io) are printed, then nothing is shown, and "top" shows QEMU process uses 100% CPU. > > After this we're running in an endless loop of: > > > > qemu-system-x86-9298 [003] ...1 162090.918845: kvm_emulate_insn: f0000:c489:66 ea 91 c4 0f 00 08 00 (prot16) > > qemu-system-x86-9298 [003] d..2 162090.918846: kvm_entry: vcpu 0 > > > > (qemu) x /i $pc > > 0x00000000000fc489: ljmpl $0x8,$0xfc491 > > > > With current master, qemu-system-x86_64 -enable-kvm is broken on at least 3.7 kernels (openSUSE 12.3). > > > > Gleb, I don't remember all the glorious details of ljmpl, but would it have to raise an MMIO request for a read-only memory slot which it fails to do? > > The point of KVM_CAP_READONLY_MEM should be that it doesn't. > Yes, it should not. Can you provide complete trace of kvm and kvmmmu event up until failure? -- Gleb.