Received: from eggs.gnu.org ([208.118.235.92]:38743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1Gv-00028P-I3 for qemu-devel@nongnu.org; Mon, 10 Sep 2012 06:31:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB1Gn-0004rO-IY for qemu-devel@nongnu.org; Mon, 10 Sep 2012 06:31:17 -0400 Received: from indium.canonical.com ([91.189.90.7]:40687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB1Gn-0004pK-AW for qemu-devel@nongnu.org; Mon, 10 Sep 2012 06:31:09 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TB1Gm-00056s-AJ for ; Mon, 10 Sep 2012 10:31:08 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 4521A2E807F for ; Mon, 10 Sep 2012 10:31:08 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 10 Sep 2012 10:23:26 -0000 From: =?utf-8?q?Till_Sch=C3=A4fer?= Sender: bounces@canonical.com References: <20120816165117.15213.21939.malonedeb@soybean.canonical.com> Message-Id: <20120910102326.29401.16501.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1037675] Re: Guest Kernel Panic if using "-cpu host" in qemu-kvm 1.1.1 Reply-To: Bug 1037675 <1037675@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ok getting the serial console to work was not that hard. here is the relevant serial output of the failing guest (full output is attached as file): [ 0.010706] mce: CPU supports 10 MCE banks [ 0.011279] ACPI: Core revision 20110623 [ 0.014769] ..TIMER: vector=3D0x30 apic1=3D0 pin1=3D2 apic2=3D-1 pin2=3D= -1 [ 0.025876] CPU0: Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz steppi= ng 07 [ 0.027998] Performance Events: = [ 0.027998] general protection fault: 0000 [#1] SMP = [ 0.027998] CPU 0 = [ 0.027998] Modules linked in: [ 0.027998] = [ 0.027998] Pid: 1, comm: swapper/0 Not tainted 3.2.12-gentoo #1 Bochs B= ochs [ 0.027998] RIP: 0010:[] [] intel_p= mu_init+0x283/0x85e [ 0.027998] RSP: 0018:ffff88000f8b9ea0 EFLAGS: 00000202 [ 0.027998] RAX: 0000000000000003 RBX: 0000000000000000 RCX: 00000000000= 00345 [ 0.027998] RDX: 0000000000000003 RSI: 0000000007280202 RDI: ffffffff81a= 7efa8 [ 0.027998] RBP: ffff88000f8b9eb0 R08: 0000000000000000 R09: ffffffff81a= 7ee70 [ 0.027998] R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff81a= a4955 [ 0.027998] R13: 0000000000000000 R14: 0000000000000000 R15: 00000000000= 00000 [ 0.027998] FS: 0000000000000000(0000) GS:ffff88000fc00000(0000) knlGS:= 0000000000000000 [ 0.027998] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b [ 0.027998] CR2: 0000000000000000 CR3: 0000000001a05000 CR4: 00000000000= 006f0 [ 0.027998] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000000= 00000 [ 0.027998] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 00000000000= 00400 [ 0.027998] Process swapper/0 (pid: 1, threadinfo ffff88000f8b8000, task= ffff88000f8b0000) [ 0.027998] Stack: [ 0.027998] 0000000000000000 ffffffff81b1b550 ffff88000f8b9ef0 ffffffff= 81aa4989 [ 0.027998] 0000000000000040 ffffffff81a800d8 ffff88000f8b9f20 ffffffff= 81b1b550 [ 0.027998] ffffffff81aa4955 0000000000000000 ffff88000f8b9f20 ffffffff= 810002ea [ 0.027998] Call Trace: [ 0.027998] [] init_hw_perf_events+0x34/0x3ef [ 0.027998] [] ? check_bugs+0x2d/0x2d [ 0.027998] [] do_one_initcall+0x7a/0x12c [ 0.027998] [] kernel_init+0x7a/0x141 [ 0.027998] [] kernel_thread_helper+0x4/0x10 [ 0.027998] [] ? start_kernel+0x339/0x339 [ 0.027998] [] ? gs_change+0xb/0xb [ 0.027998] Code: 48 d3 e0 48 ff c8 41 ff ca 48 89 05 b4 99 fd ff 7e 2b = 83 e2 1f b8 03 00 00 00 83 fa 02 b9 45 03 00 00 0f 4f c2 89 05 91 99 fd ff = <0f> 32 48 c1 e2 20 89 c0 48 09 c2 48 89 15 ef 99 fd ff e8 cf be = [ 0.027998] RIP [] intel_pmu_init+0x283/0x85e [ 0.027998] RSP [ 0.029015] ---[ end trace 4eaa2a86a8e2da22 ]--- [ 0.030006] swapper/0 used greatest stack depth: 5576 bytes left [ 0.031005] Kernel panic - not syncing: Attempted to kill init! [ 0.032006] Pid: 1, comm: swapper/0 Tainted: G D 3.2.12-gentoo= #1 [ 0.033000] Call Trace: [ 0.034003] [] panic+0x8c/0x198 [ 0.035005] [] do_exit+0x98/0x7d8 [ 0.036005] [] ? kmsg_dump+0x46/0xd2 [ 0.037007] [] oops_end+0xb1/0xb9 [ 0.038001] [] die+0x55/0x60 [ 0.039005] [] do_general_protection+0x12e/0x136 [ 0.040001] [] ? check_bugs+0x2d/0x2d [ 0.041005] [] general_protection+0x1f/0x30 [ 0.042001] [] ? check_bugs+0x2d/0x2d [ 0.043004] [] ? intel_pmu_init+0x283/0x85e [ 0.044001] [] init_hw_perf_events+0x34/0x3ef [ 0.045005] [] ? check_bugs+0x2d/0x2d [ 0.046003] [] do_one_initcall+0x7a/0x12c [ 0.047003] [] kernel_init+0x7a/0x141 [ 0.048000] [] kernel_thread_helper+0x4/0x10 [ 0.049000] [] ? start_kernel+0x339/0x339 [ 0.050008] [] ? gs_change+0xb/0xb -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1037675 Title: Guest Kernel Panic if using "-cpu host" in qemu-kvm 1.1.1 Status in QEMU: New Bug description: After Upgrading to qemu-kvm-1.1.1-r1 from version 1.0.1-r1 my virtual machines (running gentoo linux) panic at intel_pmu_init. (detailed information including stacktrace are in the uploaded screenshot). When i remove the "-cpu host" option, the system starts normally. the command line from whicht the system is bootet: qemu-kvm -vnc :7 -usbdevice tablet -daemonize -m 256 -drive file=3D/data/virtual_machines/wgs-l08.img,if=3Dvirtio -boot c -k de -net nic,model=3Dvirtio,macaddr=3D12:12:00:12:34:63,vlan=3D0 -net tap,ifname=3Dqtap6,script=3Dno,downscript=3Dno,vlan=3D0 -smp 2 -enable-kvm -cpu host -monitor unix:/var/run/qemu- kvm/wgs-l08.monitor,server,nowait also reported on gentoo bug tracker (with some more details of the host): https://bugs.gentoo.org/show_bug.cgi?id=3D431640 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1037675/+subscriptions