Received: from eggs.gnu.org ([208.118.235.92]:52922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLYq-0006Po-14 for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:11:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBLYk-0004ll-1M for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:11:07 -0400 Received: from indium.canonical.com ([91.189.90.7]:45650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLYj-0004lh-Rn for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:11:01 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1TBLYj-0006l9-4Q for ; Tue, 11 Sep 2012 08:11:01 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 175F42E807D for ; Tue, 11 Sep 2012 08:11:01 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 11 Sep 2012 08:01:53 -0000 From: Laurent COUSTET <1037675@bugs.launchpad.net> Sender: bounces@canonical.com References: <20120816165117.15213.21939.malonedeb@soybean.canonical.com> Message-Id: <20120911080153.27651.1281.malone@gac.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 I had exactly the same problem using custom kernel on Debian GNU/Linux / qemu-kvm 1.1.1 or 1.2.0. CPU: Intel(R) Xeon(R) CPU E5-2667 0 @ 2.90GHz stepping 7 microcode 0x70b I have two solutions: (VERY UGGLY) patch the kernel to remove intel perf events (hardware events): --- ../linux-3.4.10-fai-server/arch/x86/kernel/cpu/perf_event.c 2012-08-27 = 00:02:10.000000000 +0200 +++ arch/x86/kernel/cpu/perf_event.c 2012-09-10 18:56:11.870774243 +0200 @@ -1324,7 +1328,8 @@ struct event_constraint *c; int err; = - pr_info("Performance Events: "); + pr_info("Performance Events: (DISABLED BY UGGLY PATCH)"); + return 0; = switch (boot_cpu_data.x86_vendor) { case X86_VENDOR_INTEL: *OR* Add support for KVM Guest in the *GUEST* kernel config: +CONFIG_KVM_CLOCK=3Dy +CONFIG_KVM_GUEST=3Dy +CONFIG_PARAVIRT=3Dy +# CONFIG_PARAVIRT_SPINLOCKS is not set +CONFIG_PARAVIRT_CLOCK=3Dy -- = 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