From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45429) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2Jkw-0007jI-VK for qemu-devel@nongnu.org; Thu, 25 Jul 2013 07:30:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2Jkv-0004vW-N2 for qemu-devel@nongnu.org; Thu, 25 Jul 2013 07:30:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2Jkv-0004vP-7s for qemu-devel@nongnu.org; Thu, 25 Jul 2013 07:30:49 -0400 Date: Thu, 25 Jul 2013 14:30:44 +0300 From: Gleb Natapov Message-ID: <20130725113044.GD11772@redhat.com> References: <3B8B589E-4019-4AEE-A846-1A3F45A2EB4D@suse.de> <51EFEFB9.7020905@redhat.com> <20130724152125.GI16400@redhat.com> <51EFF342.3090106@suse.de> <20130724161742.GI6029@redhat.com> <51F00041.3010005@suse.de> <20130724165335.GN6029@redhat.com> <51F0384D.9020906@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51F0384D.9020906@suse.de> Subject: Re: [Qemu-devel] VM can not boot after commit 235e898 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Anthony Liguori , Jordan Justen , qemu-devel Developers , Dunrong Huang , Hannes Reinecke , Paolo Bonzini , Jordan Justen On Wed, Jul 24, 2013 at 10:25:49PM +0200, Alexander Graf wrote: > On 07/24/2013 06:53 PM, Gleb Natapov wrote: > >On Wed, Jul 24, 2013 at 06:26:41PM +0200, Alexander Graf wrote: > >>>before. Are you saying configuring BIOS memslot differently solves the > >>>problem? > >>Git bisect pointed to the commit mentioned in this email. The > >>following patch also gets me a working guest again: > >> > >>diff --git a/kvm-all.c b/kvm-all.c > >>index 4fb4ccb..deca9e5 100644 > >>--- a/kvm-all.c > >>+++ b/kvm-all.c > >>@@ -1455,7 +1455,7 @@ int kvm_init(void) > >> s->irq_set_ioctl = KVM_IRQ_LINE_STATUS; > >> } > >> > >>-#ifdef KVM_CAP_READONLY_MEM > >>+#if 0 //def KVM_CAP_READONLY_MEM > >> kvm_readonly_mem_allowed = > >> (kvm_check_extension(s, KVM_CAP_READONLY_MEM)> 0); > >> #endif > >> > >Can you disable emulate_invalid_state on 3.7? > > I could only find emulate_invalid_guest_state. I suppose you mean > that one? :) > That one will do :) > $ rmmod kvm-intel > $ modprobe kvm-intel emulate_invalid_guest_state=n > $ ./x86_64-softmmu/qemu-system-x86_64 -nographic -kernel > /boot/vmlinuz -append console=ttyS0 -bios pc-bios/bios.bin > -enable-kvm > QEMU 1.5.50 monitor - type 'help' for more information > (qemu) > KVM: entry failed, hardware error 0x80000021 > Yeah, emulate_invalid_guest_state=0 was broken for a while. Can you try applying a4d3326c2de46fd7bcc47d1e8786efccfc152f81 on top of 3.7 and try again with emulate_invalid_guest_state=0? > >What happens on upstream kernel > >(works for me obviously :)). > > kvm-kmod from 3.9 works. > Doing backwards bisect to see where it was fixed would be interesting. -- Gleb.