* kernel 3.9.x kvm hangs after seabios @ 2013-05-08 11:22 Tomas Papan 2013-05-08 11:55 ` Gleb Natapov 0 siblings, 1 reply; 13+ messages in thread From: Tomas Papan @ 2013-05-08 11:22 UTC (permalink / raw) To: kvm I have the same issue, with 3.9.1 (3.9.0 too) it hangs right after seabios... (no problem in 3.8.11) qemu-1.4.1 seabios-1.7.2.1 after setting emulate_invalid_guest_state=0 everything works just fine. virsh # qemu-monitor-command vm-jack --hmp x/8i \$pc 0x00000000000fc46b: lgdtw %cs:-0x2c60 0x00000000000fc471: mov %cr0,%eax 0x00000000000fc474: or $0x1,%eax 0x00000000000fc478: mov %eax,%cr0 0x00000000000fc47b: ljmpl $0x8,$0xfc483 0x00000000000fc483: mov $0x10,%ax 0x00000000000fc486: add %al,(%bx,%si) 0x00000000000fc488: mov %ax,%ds virsh # qemu-monitor-command vm-jack --hmp x/64b \$pc 0x00000000000fc46b: lgdtw %cs:-0x2c60 0x00000000000fc471: mov %cr0,%eax 0x00000000000fc474: or $0x1,%eax 0x00000000000fc478: mov %eax,%cr0 0x00000000000fc47b: ljmpl $0x8,$0xfc483 0x00000000000fc483: mov $0x10,%ax 0x00000000000fc486: add %al,(%bx,%si) 0x00000000000fc488: mov %ax,%ds 0x00000000000fc48a: mov %ax,%es 0x00000000000fc48c: mov %ax,%ss 0x00000000000fc48e: mov %ax,%fs 0x00000000000fc490: mov %ax,%gs 0x00000000000fc492: mov %cx,%ax 0x00000000000fc494: jmp *%dx 0x00000000000fc496: mov %ax,%cx 0x00000000000fc498: mov $0x20,%ax 0x00000000000fc49b: add %al,(%bx,%si) 0x00000000000fc49d: mov %ax,%ds 0x00000000000fc49f: mov %ax,%es 0x00000000000fc4a1: mov %ax,%ss 0x00000000000fc4a3: mov %ax,%fs 0x00000000000fc4a5: mov %ax,%gs 0x00000000000fc4a7: ljmpl $0xc189,$0x18c4c4 0x00000000000fc4af: mov $0x30,%ax 0x00000000000fc4b2: add %al,(%bx,%si) 0x00000000000fc4b4: mov %ax,%ds 0x00000000000fc4b6: mov %ax,%es 0x00000000000fc4b8: mov %ax,%ss 0x00000000000fc4ba: mov %ax,%fs 0x00000000000fc4bc: mov %ax,%gs 0x00000000000fc4be: ljmpl $0x200f,$0x28c4c4 0x00000000000fc4c6: shlb $0xe0,-0x7d(%bp) 0x00000000000fc4ca: decb (%bx) 0x00000000000fc4cc: and %al,%al 0x00000000000fc4ce: ljmp $0xf000,$0xc4d3 0x00000000000fc4d3: lidtw %cs:-0x2c18 0x00000000000fc4d9: xor %ax,%ax 0x00000000000fc4db: mov %ax,%fs 0x00000000000fc4dd: mov %ax,%gs 0x00000000000fc4df: mov %ax,%es 0x00000000000fc4e1: mov %ax,%ds 0x00000000000fc4e3: mov %ax,%ss 0x00000000000fc4e5: mov %ecx,%eax 0x00000000000fc4e8: jmpl *%edx 0x00000000000fc4eb: push %ebp 0x00000000000fc4ed: push %eax 0x00000000000fc4ef: pushl %es 0x00000000000fc4f1: push %cs 0x00000000000fc4f2: push $0xc536 0x00000000000fc4f5: addr32 pushw %es:0x24(%eax) 0x00000000000fc4fa: addr32 pushl %es:0x20(%eax) 0x00000000000fc500: addr32 mov %es:0x4(%eax),%edi 0x00000000000fc506: addr32 mov %es:0x8(%eax),%esi 0x00000000000fc50c: addr32 mov %es:0xc(%eax),%ebp 0x00000000000fc512: addr32 mov %es:0x10(%eax),%ebx 0x00000000000fc518: addr32 mov %es:0x14(%eax),%edx 0x00000000000fc51e: addr32 mov %es:0x18(%eax),%ecx 0x00000000000fc524: addr32 mov %es:(%eax),%ds 0x00000000000fc528: addr32 pushl %es:0x1c(%eax) 0x00000000000fc52e: addr32 mov %es:0x2(%eax),%es 0x00000000000fc533: pop %eax 0x00000000000fc535: iret 0x00000000000fc536: pushf 0x00000000000fc537: cli ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 11:22 kernel 3.9.x kvm hangs after seabios Tomas Papan @ 2013-05-08 11:55 ` Gleb Natapov 2013-05-08 12:08 ` Tomas Papan 0 siblings, 1 reply; 13+ messages in thread From: Gleb Natapov @ 2013-05-08 11:55 UTC (permalink / raw) To: Tomas Papan; +Cc: kvm On Wed, May 08, 2013 at 11:22:01AM +0000, Tomas Papan wrote: > I have the same issue, with 3.9.1 (3.9.0 too) it hangs right after seabios... > (no problem in 3.8.11) > > qemu-1.4.1 > seabios-1.7.2.1 > Is there anything interesting in libvirt logfile? Also please send the output of "qemu-monitor-command vm-jack --hmp info registers" And, just in case, can you send me your bios.bin image. Mine work. > after setting emulate_invalid_guest_state=0 everything works just fine. > > virsh # qemu-monitor-command vm-jack --hmp x/8i \$pc > 0x00000000000fc46b: lgdtw %cs:-0x2c60 > 0x00000000000fc471: mov %cr0,%eax > 0x00000000000fc474: or $0x1,%eax > 0x00000000000fc478: mov %eax,%cr0 > 0x00000000000fc47b: ljmpl $0x8,$0xfc483 > 0x00000000000fc483: mov $0x10,%ax > 0x00000000000fc486: add %al,(%bx,%si) > 0x00000000000fc488: mov %ax,%ds > > > virsh # qemu-monitor-command vm-jack --hmp x/64b \$pc > 0x00000000000fc46b: lgdtw %cs:-0x2c60 > 0x00000000000fc471: mov %cr0,%eax > 0x00000000000fc474: or $0x1,%eax > 0x00000000000fc478: mov %eax,%cr0 > 0x00000000000fc47b: ljmpl $0x8,$0xfc483 > 0x00000000000fc483: mov $0x10,%ax > 0x00000000000fc486: add %al,(%bx,%si) > 0x00000000000fc488: mov %ax,%ds > 0x00000000000fc48a: mov %ax,%es > 0x00000000000fc48c: mov %ax,%ss > 0x00000000000fc48e: mov %ax,%fs > 0x00000000000fc490: mov %ax,%gs > 0x00000000000fc492: mov %cx,%ax > 0x00000000000fc494: jmp *%dx > 0x00000000000fc496: mov %ax,%cx > 0x00000000000fc498: mov $0x20,%ax > 0x00000000000fc49b: add %al,(%bx,%si) > 0x00000000000fc49d: mov %ax,%ds > 0x00000000000fc49f: mov %ax,%es > 0x00000000000fc4a1: mov %ax,%ss > 0x00000000000fc4a3: mov %ax,%fs > 0x00000000000fc4a5: mov %ax,%gs > 0x00000000000fc4a7: ljmpl $0xc189,$0x18c4c4 > 0x00000000000fc4af: mov $0x30,%ax > 0x00000000000fc4b2: add %al,(%bx,%si) > 0x00000000000fc4b4: mov %ax,%ds > 0x00000000000fc4b6: mov %ax,%es > 0x00000000000fc4b8: mov %ax,%ss > 0x00000000000fc4ba: mov %ax,%fs > 0x00000000000fc4bc: mov %ax,%gs > 0x00000000000fc4be: ljmpl $0x200f,$0x28c4c4 > 0x00000000000fc4c6: shlb $0xe0,-0x7d(%bp) > 0x00000000000fc4ca: decb (%bx) > 0x00000000000fc4cc: and %al,%al > 0x00000000000fc4ce: ljmp $0xf000,$0xc4d3 > 0x00000000000fc4d3: lidtw %cs:-0x2c18 > 0x00000000000fc4d9: xor %ax,%ax > 0x00000000000fc4db: mov %ax,%fs > 0x00000000000fc4dd: mov %ax,%gs > 0x00000000000fc4df: mov %ax,%es > 0x00000000000fc4e1: mov %ax,%ds > 0x00000000000fc4e3: mov %ax,%ss > 0x00000000000fc4e5: mov %ecx,%eax > 0x00000000000fc4e8: jmpl *%edx > 0x00000000000fc4eb: push %ebp > 0x00000000000fc4ed: push %eax > 0x00000000000fc4ef: pushl %es > 0x00000000000fc4f1: push %cs > 0x00000000000fc4f2: push $0xc536 > 0x00000000000fc4f5: addr32 pushw %es:0x24(%eax) > 0x00000000000fc4fa: addr32 pushl %es:0x20(%eax) > 0x00000000000fc500: addr32 mov %es:0x4(%eax),%edi > 0x00000000000fc506: addr32 mov %es:0x8(%eax),%esi > 0x00000000000fc50c: addr32 mov %es:0xc(%eax),%ebp > 0x00000000000fc512: addr32 mov %es:0x10(%eax),%ebx > 0x00000000000fc518: addr32 mov %es:0x14(%eax),%edx > 0x00000000000fc51e: addr32 mov %es:0x18(%eax),%ecx > 0x00000000000fc524: addr32 mov %es:(%eax),%ds > 0x00000000000fc528: addr32 pushl %es:0x1c(%eax) > 0x00000000000fc52e: addr32 mov %es:0x2(%eax),%es > 0x00000000000fc533: pop %eax > 0x00000000000fc535: iret > 0x00000000000fc536: pushf > 0x00000000000fc537: cli > > -- > 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. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 11:55 ` Gleb Natapov @ 2013-05-08 12:08 ` Tomas Papan 2013-05-08 12:20 ` Gleb Natapov 2013-05-08 12:59 ` Daniel P. Berrange 0 siblings, 2 replies; 13+ messages in thread From: Tomas Papan @ 2013-05-08 12:08 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm Hi, I found this in the libvirt (but those messages are same in 3.8.x) anakin libvirt # cat libvirtd.log 2013-05-08 11:59:29.645+0000: 3750: info : libvirt version: 1.0.5 2013-05-08 11:59:29.645+0000: 3750: error : udevGetDMIData:1548 : Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or '/sys/class/dmi/id' 2013-05-08 11:59:29.680+0000: 3750: warning : ebiptablesDriverInitCLITools:4225 : Could not find 'ebtables' executable virsh # qemu-monitor-command vm-jack --hmp info registers EAX=00000002 EBX=000064a1 ECX=00006e08 EDX=000fc5ab ESI=0000c5b8 EDI=00006eec EBP=dffd83e0 ESP=00006df8 EIP=0000c46b EFL=00010002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=1 ES =0000 00000000 0000ffff 00009300 CS =f000 000f0000 0000ffff 00009b00 SS =0000 00000000 0000ffff 00009300 DS =0000 00000000 0000ffff 00009300 FS =0000 00000000 0000ffff 00009300 GS =0000 00000000 0000ffff 00009300 LDT=0000 00000000 0000ffff 00008200 TR =0000 00000000 0000ffff 00008b00 GDT= 000fd3a8 00000037 IDT= 000fd3e6 00000000 CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000000 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 XMM00=00000000000000000000000000000000 XMM01=00000000000000000000000000000000 XMM02=00000000000000000000000000000000 XMM03=00000000000000000000000000000000 XMM04=00000000000000000000000000000000 XMM05=00000000000000000000000000000000 XMM06=00000000000000000000000000000000 XMM07=00000000000000000000000000000000 bios.bin can be found here http://papan.sk/share/bios.bin I should mentioned that I'm using gentoo and libvirt 1.0.5. I'm sorry if gmail interface breaks output. Regrads Tomas On Wed, May 8, 2013 at 1:55 PM, Gleb Natapov <gleb@redhat.com> wrote: > On Wed, May 08, 2013 at 11:22:01AM +0000, Tomas Papan wrote: >> I have the same issue, with 3.9.1 (3.9.0 too) it hangs right after seabios... >> (no problem in 3.8.11) >> >> qemu-1.4.1 >> seabios-1.7.2.1 >> > Is there anything interesting in libvirt logfile? > > Also please send the output of "qemu-monitor-command vm-jack --hmp info > registers" > > And, just in case, can you send me your bios.bin image. Mine work. > >> after setting emulate_invalid_guest_state=0 everything works just fine. >> >> virsh # qemu-monitor-command vm-jack --hmp x/8i \$pc >> 0x00000000000fc46b: lgdtw %cs:-0x2c60 >> 0x00000000000fc471: mov %cr0,%eax >> 0x00000000000fc474: or $0x1,%eax >> 0x00000000000fc478: mov %eax,%cr0 >> 0x00000000000fc47b: ljmpl $0x8,$0xfc483 >> 0x00000000000fc483: mov $0x10,%ax >> 0x00000000000fc486: add %al,(%bx,%si) >> 0x00000000000fc488: mov %ax,%ds >> >> >> virsh # qemu-monitor-command vm-jack --hmp x/64b \$pc >> 0x00000000000fc46b: lgdtw %cs:-0x2c60 >> 0x00000000000fc471: mov %cr0,%eax >> 0x00000000000fc474: or $0x1,%eax >> 0x00000000000fc478: mov %eax,%cr0 >> 0x00000000000fc47b: ljmpl $0x8,$0xfc483 >> 0x00000000000fc483: mov $0x10,%ax >> 0x00000000000fc486: add %al,(%bx,%si) >> 0x00000000000fc488: mov %ax,%ds >> 0x00000000000fc48a: mov %ax,%es >> 0x00000000000fc48c: mov %ax,%ss >> 0x00000000000fc48e: mov %ax,%fs >> 0x00000000000fc490: mov %ax,%gs >> 0x00000000000fc492: mov %cx,%ax >> 0x00000000000fc494: jmp *%dx >> 0x00000000000fc496: mov %ax,%cx >> 0x00000000000fc498: mov $0x20,%ax >> 0x00000000000fc49b: add %al,(%bx,%si) >> 0x00000000000fc49d: mov %ax,%ds >> 0x00000000000fc49f: mov %ax,%es >> 0x00000000000fc4a1: mov %ax,%ss >> 0x00000000000fc4a3: mov %ax,%fs >> 0x00000000000fc4a5: mov %ax,%gs >> 0x00000000000fc4a7: ljmpl $0xc189,$0x18c4c4 >> 0x00000000000fc4af: mov $0x30,%ax >> 0x00000000000fc4b2: add %al,(%bx,%si) >> 0x00000000000fc4b4: mov %ax,%ds >> 0x00000000000fc4b6: mov %ax,%es >> 0x00000000000fc4b8: mov %ax,%ss >> 0x00000000000fc4ba: mov %ax,%fs >> 0x00000000000fc4bc: mov %ax,%gs >> 0x00000000000fc4be: ljmpl $0x200f,$0x28c4c4 >> 0x00000000000fc4c6: shlb $0xe0,-0x7d(%bp) >> 0x00000000000fc4ca: decb (%bx) >> 0x00000000000fc4cc: and %al,%al >> 0x00000000000fc4ce: ljmp $0xf000,$0xc4d3 >> 0x00000000000fc4d3: lidtw %cs:-0x2c18 >> 0x00000000000fc4d9: xor %ax,%ax >> 0x00000000000fc4db: mov %ax,%fs >> 0x00000000000fc4dd: mov %ax,%gs >> 0x00000000000fc4df: mov %ax,%es >> 0x00000000000fc4e1: mov %ax,%ds >> 0x00000000000fc4e3: mov %ax,%ss >> 0x00000000000fc4e5: mov %ecx,%eax >> 0x00000000000fc4e8: jmpl *%edx >> 0x00000000000fc4eb: push %ebp >> 0x00000000000fc4ed: push %eax >> 0x00000000000fc4ef: pushl %es >> 0x00000000000fc4f1: push %cs >> 0x00000000000fc4f2: push $0xc536 >> 0x00000000000fc4f5: addr32 pushw %es:0x24(%eax) >> 0x00000000000fc4fa: addr32 pushl %es:0x20(%eax) >> 0x00000000000fc500: addr32 mov %es:0x4(%eax),%edi >> 0x00000000000fc506: addr32 mov %es:0x8(%eax),%esi >> 0x00000000000fc50c: addr32 mov %es:0xc(%eax),%ebp >> 0x00000000000fc512: addr32 mov %es:0x10(%eax),%ebx >> 0x00000000000fc518: addr32 mov %es:0x14(%eax),%edx >> 0x00000000000fc51e: addr32 mov %es:0x18(%eax),%ecx >> 0x00000000000fc524: addr32 mov %es:(%eax),%ds >> 0x00000000000fc528: addr32 pushl %es:0x1c(%eax) >> 0x00000000000fc52e: addr32 mov %es:0x2(%eax),%es >> 0x00000000000fc533: pop %eax >> 0x00000000000fc535: iret >> 0x00000000000fc536: pushf >> 0x00000000000fc537: cli >> >> -- >> 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. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 12:08 ` Tomas Papan @ 2013-05-08 12:20 ` Gleb Natapov 2013-05-08 12:51 ` Tomas Papan 2013-05-08 12:59 ` Daniel P. Berrange 1 sibling, 1 reply; 13+ messages in thread From: Gleb Natapov @ 2013-05-08 12:20 UTC (permalink / raw) To: Tomas Papan; +Cc: kvm On Wed, May 08, 2013 at 02:08:55PM +0200, Tomas Papan wrote: > Hi, > > I found this in the libvirt (but those messages are same in 3.8.x) > anakin libvirt # cat libvirtd.log > 2013-05-08 11:59:29.645+0000: 3750: info : libvirt version: 1.0.5 > 2013-05-08 11:59:29.645+0000: 3750: error : udevGetDMIData:1548 : > Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or > '/sys/class/dmi/id' > 2013-05-08 11:59:29.680+0000: 3750: warning : > ebiptablesDriverInitCLITools:4225 : Could not find 'ebtables' > executable > Nothing about KVM internal error? Couple of more things please: 1. Output of qemu-monitor-command vm-jack --hmp info status. 2. command line. 3. trace http://www.linux-kvm.org/page/Tracing -- Gleb. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 12:20 ` Gleb Natapov @ 2013-05-08 12:51 ` Tomas Papan 2013-05-08 13:29 ` Gleb Natapov 0 siblings, 1 reply; 13+ messages in thread From: Tomas Papan @ 2013-05-08 12:51 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm Hi, No nothing, I check all logs (even syslog) 1) virsh # qemu-monitor-command vm-jack --hmp info status VM status: running 2) morpheus@anakin ~ $ ps aux | grep vm-jack qemu 3822 0.5 0.1 8952256 23600 ? Sl 13:59 0:08 /usr/bin/qemu-system-x86_64 -machine accel=kvm -name vm-jack -S -machine pc-0.14,accel=kvm,usb=off -cpu Nehalem,+rdtscp,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 8192 -smp 4,sockets=4,cores=1,threads=1 -uuid 03196c23-24ba-d398-a000-582b0e88b0e7 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm-jack.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=c,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/jack.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/var/lib/libvirt/images/kernel.img,if=none,id=drive-virtio-disk1,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:21:1c:e0,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 3) it took some time, I didn't have debug_fs, then tracing... but the file is stored here (15 MB) http://papan.sk/share/trace.dat.tar.gz Regards Tomas ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 12:51 ` Tomas Papan @ 2013-05-08 13:29 ` Gleb Natapov 2013-05-08 13:50 ` Tomas Papan 0 siblings, 1 reply; 13+ messages in thread From: Gleb Natapov @ 2013-05-08 13:29 UTC (permalink / raw) To: Tomas Papan; +Cc: kvm On Wed, May 08, 2013 at 02:51:48PM +0200, Tomas Papan wrote: > Hi, > > No nothing, I check all logs (even syslog) > Yeah, since status of the vm is "running" you are not suppose to see there anything. > 1) virsh # qemu-monitor-command vm-jack --hmp info status > VM status: running > > 2) morpheus@anakin ~ $ ps aux | grep vm-jack > qemu 3822 0.5 0.1 8952256 23600 ? Sl 13:59 0:08 > /usr/bin/qemu-system-x86_64 -machine accel=kvm -name vm-jack -S > -machine pc-0.14,accel=kvm,usb=off -cpu > Nehalem,+rdtscp,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme > -m 8192 -smp 4,sockets=4,cores=1,threads=1 -uuid > 03196c23-24ba-d398-a000-582b0e88b0e7 -no-user-config -nodefaults > -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm-jack.monitor,server,nowait > -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc > -no-shutdown -boot order=c,menu=on -device > piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive > file=/var/lib/libvirt/images/jack.img,if=none,id=drive-virtio-disk0,format=raw > -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 > -drive file=/var/lib/libvirt/images/kernel.img,if=none,id=drive-virtio-disk1,format=raw > -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 > -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device > ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev > tap,fd=19,id=hostnet0 -device > e1000,netdev=hostnet0,id=net0,mac=52:54:00:21:1c:e0,bus=pci.0,addr=0x3 > -chardev pty,id=charserial0 -device > isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -k en-us > -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 > > 3) it took some time, I didn't have debug_fs, then tracing... but the > file is stored here (15 MB) http://papan.sk/share/trace.dat.tar.gz > Very interesting. In the middle of the run vcpu decides that it does not want to run any more. How much cpu time qemu takes when it happens? If it is 100% can you do the following: 1. run qemu-monitor-command vm-jack --hmp info cpus 2. note thread id for cpu #0 3. run "trace-cmd record -P $pid -p function" where $pid is the pid thread id that you've found in 2. -- Gleb. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 13:29 ` Gleb Natapov @ 2013-05-08 13:50 ` Tomas Papan 2013-05-08 14:43 ` Gleb Natapov 0 siblings, 1 reply; 13+ messages in thread From: Tomas Papan @ 2013-05-08 13:50 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm Ok, the cpu stays at 0% when it hangs, there is only one 100% cpu peak which happens when the vm starts ( I think this is quite normal). However I run following command, and I stop it right when it hangs: anakin trace2 # virsh start vm-jack; pid=`virsh qemu-monitor-command vm-jack --hmp info cpus | grep '\*' | awk '{print $5}' | cut -d\= -f2`; trace-cmd record -P $pid -p function if anyone is interested it produces a 1.6 GB file (the compressed version can be found here: http://papan.sk/share/trace2.dat.tar.gz (150 MB)) Tomas ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 13:50 ` Tomas Papan @ 2013-05-08 14:43 ` Gleb Natapov 2013-05-08 14:52 ` Tomas Papan 0 siblings, 1 reply; 13+ messages in thread From: Gleb Natapov @ 2013-05-08 14:43 UTC (permalink / raw) To: Tomas Papan; +Cc: kvm On Wed, May 08, 2013 at 03:50:47PM +0200, Tomas Papan wrote: > Ok, the cpu stays at 0% when it hangs, there is only one 100% cpu peak > which happens when the vm starts ( I think this is quite normal). > > However I run following command, and I stop it right when it hangs: > anakin trace2 # virsh start vm-jack; pid=`virsh qemu-monitor-command > vm-jack --hmp info cpus | grep '\*' | awk '{print $5}' | cut -d\= > -f2`; trace-cmd record -P $pid -p function > > if anyone is interested it produces a 1.6 GB file (the compressed > version can be found here: http://papan.sk/share/trace2.dat.tar.gz > (150 MB)) > Thanks! Can you test the patch below: diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6667042..0af1807 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -5197,6 +5197,12 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu) return 0; } + if (vcpu->arch.halt_request) { + vcpu->arch.halt_request = 0; + ret = kvm_emulate_halt(vcpu); + goto out; + } + if (signal_pending(current)) goto out; if (need_resched()) -- Gleb. ^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 14:43 ` Gleb Natapov @ 2013-05-08 14:52 ` Tomas Papan 2013-05-08 14:52 ` Tomas Papan 0 siblings, 1 reply; 13+ messages in thread From: Tomas Papan @ 2013-05-08 14:52 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 14:52 ` Tomas Papan @ 2013-05-08 14:52 ` Tomas Papan 2013-05-08 14:54 ` Gleb Natapov 0 siblings, 1 reply; 13+ messages in thread From: Tomas Papan @ 2013-05-08 14:52 UTC (permalink / raw) To: Gleb Natapov; +Cc: kvm patch is working :) Thank you very much Gleb. Regards Tomas ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 14:52 ` Tomas Papan @ 2013-05-08 14:54 ` Gleb Natapov 0 siblings, 0 replies; 13+ messages in thread From: Gleb Natapov @ 2013-05-08 14:54 UTC (permalink / raw) To: Tomas Papan; +Cc: kvm On Wed, May 08, 2013 at 04:52:52PM +0200, Tomas Papan wrote: > patch is working :) > > Thank you very much Gleb. > Thank you for your patience. Curious but it was. -- Gleb. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 12:08 ` Tomas Papan 2013-05-08 12:20 ` Gleb Natapov @ 2013-05-08 12:59 ` Daniel P. Berrange 2013-05-08 13:04 ` Tomas Papan 1 sibling, 1 reply; 13+ messages in thread From: Daniel P. Berrange @ 2013-05-08 12:59 UTC (permalink / raw) To: Tomas Papan; +Cc: Gleb Natapov, kvm On Wed, May 08, 2013 at 02:08:55PM +0200, Tomas Papan wrote: > Hi, > > I found this in the libvirt (but those messages are same in 3.8.x) > anakin libvirt # cat libvirtd.log > 2013-05-08 11:59:29.645+0000: 3750: info : libvirt version: 1.0.5 > 2013-05-08 11:59:29.645+0000: 3750: error : udevGetDMIData:1548 : > Failed to get udev device for syspath '/sys/devices/virtual/dmi/id' or > '/sys/class/dmi/id' > 2013-05-08 11:59:29.680+0000: 3750: warning : > ebiptablesDriverInitCLITools:4225 : Could not find 'ebtables' > executable You need to look at /var/log/libvirt/qemu/$GUESTNAME.log for QEMU related messages. The libvirtd.log file only has the libvirt related messages. Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: kernel 3.9.x kvm hangs after seabios 2013-05-08 12:59 ` Daniel P. Berrange @ 2013-05-08 13:04 ` Tomas Papan 0 siblings, 0 replies; 13+ messages in thread From: Tomas Papan @ 2013-05-08 13:04 UTC (permalink / raw) To: Daniel P. Berrange; +Cc: Gleb Natapov, kvm Sorry, I didn't write that well, I checked that log too... nothing is there... anakin qemu # cat vm-jack.log 2013-05-08 13:02:52.358+0000: starting up LC_ALL=C PATH=/bin:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/opt/bin HOME=/root USER=root QEMU_AUDIO_DRV=none /usr/bin/qemu-kvm -name vm-jack -S -machine pc-0.14,accel=kvm,usb=off -cpu Nehalem,+rdtscp,+pdcm,+xtpr,+tm2,+est,+smx,+vmx,+ds_cpl,+monitor,+dtes64,+pbe,+tm,+ht,+ss,+acpi,+ds,+vme -m 8192 -smp 4,sockets=4,cores=1,threads=1 -uuid 03196c23-24ba-d398-a000-582b0e88b0e7 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/vm-jack.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot order=c,menu=on -device piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -drive file=/var/lib/libvirt/images/jack.img,if=none,id=drive-virtio-disk0,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0 -drive file=/var/lib/libvirt/images/kernel.img,if=none,id=drive-virtio-disk1,format=raw -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x5,drive=drive-virtio-disk1,id=virtio-disk1 -drive if=none,id=drive-ide0-1-0,readonly=on,format=raw -device ide-cd,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev tap,fd=19,id=hostnet0 -device e1000,netdev=hostnet0,id=net0,mac=52:54:00:21:1c:e0,bus=pci.0,addr=0x3 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -vnc 127.0.0.1:0 -k en-us -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 char device redirected to /dev/pts/3 (label charserial0) ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2013-05-08 14:54 UTC | newest] Thread overview: 13+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-05-08 11:22 kernel 3.9.x kvm hangs after seabios Tomas Papan 2013-05-08 11:55 ` Gleb Natapov 2013-05-08 12:08 ` Tomas Papan 2013-05-08 12:20 ` Gleb Natapov 2013-05-08 12:51 ` Tomas Papan 2013-05-08 13:29 ` Gleb Natapov 2013-05-08 13:50 ` Tomas Papan 2013-05-08 14:43 ` Gleb Natapov 2013-05-08 14:52 ` Tomas Papan 2013-05-08 14:52 ` Tomas Papan 2013-05-08 14:54 ` Gleb Natapov 2013-05-08 12:59 ` Daniel P. Berrange 2013-05-08 13:04 ` Tomas Papan
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.