From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: Yet another kernel backtrace pointing at KVM Date: Mon, 29 Jun 2009 08:40:25 +0300 Message-ID: <20090629054025.GQ20289@redhat.com> References: <4A47C292.9030907@sofiacom.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: avi@redhat.com, kvm@vger.kernel.org To: Ivelin Ivanov Return-path: Received: from mx2.redhat.com ([66.187.237.31]:45103 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750725AbZF2Fkg (ORCPT ); Mon, 29 Jun 2009 01:40:36 -0400 Content-Disposition: inline In-Reply-To: <4A47C292.9030907@sofiacom.bg> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Jun 28, 2009 at 10:20:50PM +0300, Ivelin Ivanov wrote: > Hello KVM team, > > I am using KVM for maintaining mixture of Windows and Linux VMs. > The kernel version is 2.6.30. > I am using the kernel's KVM module and qemu-kvm-0.86. > The KVM in 2.6.30 does not handle task switch properly and it hits WARN_ON() here. Current KVM tree should handle this better. What operation system the guest that triggers this is running? It looks like it configures some exception handler (may be #DF) to be a task gate. > Jun 26 15:23:25 pc187 kernel: ------------[ cut here ]------------ > Jun 26 15:23:25 pc187 kernel: WARNING: at arch/x86/kvm/x86.c:204 > kvm_queue_exception_e+0x24/0x45 [kvm]() > Jun 26 15:23:25 pc187 kernel: Hardware name: IBM System x3650 -[7979B4G]- > Jun 26 15:23:25 pc187 kernel: Modules linked in: 8021q garp tun reiserfs > st ide_gd_mod ide_cd_mod bridge stp kvm_intel kvm ipv6 af_packet cpufr > eq_conservative cpufreq_userspace cpufreq_powersave acpi_cpufreq > speedstep_lib loop dm_mod i5k_amb ibmpex i5000_edac ibmaem i2c_i801 > iTCO_wdt i > TCO_vendor_support rtc_cmos bnx2 sr_mod rtc_core ipmi_msghandler ses > edac_core rtc_lib button pcspkr i2c_core cdrom serio_raw enclosure shpchp > pci_hotplug joydev sg usbhid hid uhci_hcd ehci_hcd usbcore sd_mod > crc_t10dif edd ext3 mbcache jbd fan ide_pci_generic ide_core ata_generic > ata_ > piix libata thermal processor thermal_sys hwmon aacraid scsi_mod > Jun 26 15:23:25 pc187 kernel: Pid: 3452, comm: qemu-system-x86 Tainted: > G W 2.6.30-9-pae #1 > Jun 26 15:23:25 pc187 kernel: Call Trace: > Jun 26 15:23:25 pc187 kernel: [] warn_slowpath_common+0x60/0x90 > Jun 26 15:23:25 pc187 kernel: [] warn_slowpath_null+0xd/0x10 > Jun 26 15:23:25 pc187 kernel: [] > kvm_queue_exception_e+0x24/0x45 [kvm] > Jun 26 15:23:25 pc187 kernel: [] kvm_task_switch+0xfb/0xada [kvm] > Jun 26 15:23:25 pc187 kernel: [] ? > kvm_inject_page_fault+0x5a/0x5f [kvm] > Jun 26 15:23:25 pc187 kernel: [] ? > kvm_mmu_page_fault+0x16/0x75 [kvm] > Jun 26 15:23:25 pc187 kernel: [] handle_task_switch+0x6d/0x96 > [kvm_intel] > Jun 26 15:23:25 pc187 kernel: [] kvm_handle_exit+0x1c3/0x1e0 > [kvm_intel] > Jun 26 15:23:25 pc187 kernel: [] ? > vmx_queue_exception+0xf9/0xfe [kvm_intel] > Jun 26 15:23:25 pc187 kernel: [] > kvm_arch_vcpu_ioctl_run+0x89d/0xab6 [kvm] > Jun 26 15:23:25 pc187 kernel: [] ? do_sync_readv_writev+0xa1/0xdf > Jun 26 15:23:25 pc187 kernel: [] kvm_vcpu_ioctl+0xec/0x602 [kvm] > Jun 26 15:23:25 pc187 kernel: [] ? _spin_unlock+0xf/0x23 > Jun 26 15:23:25 pc187 kernel: [] ? > generic_smp_call_function_single_interrupt+0x6c/0x9e > Jun 26 15:23:25 pc187 kernel: [] ? irq_exit+0x61/0x63 > Jun 26 15:23:25 pc187 kernel: [] ? > smp_call_function_single_interrupt+0x2d/0x2f > Jun 26 15:23:25 pc187 kernel: [] ? > call_function_single_interrupt+0x2a/0x30 > Jun 26 15:23:25 pc187 kernel: [] ? kvm_vcpu_ioctl+0x0/0x602 [kvm] > Jun 26 15:23:25 pc187 kernel: [] vfs_ioctl+0x22/0x69 > Jun 26 15:23:25 pc187 kernel: [] do_vfs_ioctl+0x439/0x472 > Jun 26 15:23:25 pc187 kernel: [] ? > smp_call_function_single_interrupt+0x2d/0x2f > Jun 26 15:23:25 pc187 kernel: [] ? > call_function_single_interrupt+0x2a/0x30 > Jun 26 15:23:25 pc187 kernel: [] ? fget_light+0x8a/0xb1 > Jun 26 15:23:25 pc187 kernel: [] sys_ioctl+0x40/0x5a > Jun 26 15:23:25 pc187 kernel: [] sysenter_do_call+0x12/0x28 > Jun 26 15:23:25 pc187 kernel: ---[ end trace 9cc5a56b9c7eda33 ]--- > > Here is some more info: > # uname -a > Linux pc187 2.6.30-9-pae #1 SMP PREEMPT Wed Jun 17 15:29:59 EEST 2009 > i686 i686 i386 GNU/Linux > # qemu-system-x86_64 --version > QEMU PC emulator version 0.10.50 (qemu-kvm-devel-86), Copyright (c) > 2003-2008 Fabrice Bellard > # modinfo /lib/modules/2.6.30-9-pae/kernel/arch/x86/kvm/kvm.ko > filename: /lib/modules/2.6.30-9-pae/kernel/arch/x86/kvm/kvm.ko > license: GPL > author: Qumranet > srcversion: 934CD9DB264501B0431438A > depends: > vermagic: 2.6.30-9-pae SMP preempt mod_unload modversions CORE2 > parm: oos_shadow:bool > parm: msi2intx:bool > > Hope to hear from you soon. > Best regards, > > Ivelin Ivanov > > P.S. No mini-dumps were found in the WinXP VM > > > > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Gleb.