Skip to contentSkip to conversation

kernel 3.9.x kvm hangs after seabios

DISCUSSION Tomas Papan 3 participants 13 messages May 8, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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 
#1 lore raw
Quoted 6 lines · Tomas Papan

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.

Quoted 79 lines

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 
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Gleb.

#2 lore raw

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

Quoted 100 lines · Gleb Natapov
Quoted 6 lines · Tomas Papan

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.

Quoted 79 lines

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
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Gleb.

#3 lore raw
Quoted 4 lines · Tomas Papan

Hi,

I found this in the libvirt (but those messages are same in 3.8.x) anakin libvirt # cat libvirtd.log

Quoted 8 lines
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.

#4 lore raw

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

#5 lore raw
Quoted 4 lines · Tomas Papan

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.

Quoted 26 lines

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

(quoted diff) +0 -3
-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

(quoted diff) +0 -4
-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

Quoted 3 lines

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.

#6 lore raw

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

#7 lore raw
Quoted 12 lines · Tomas Papan

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:

arch/x86/kvm/vmx.c +6 -0
index 6667042..0af1807 100644
@@ -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.

#9 lore raw

patch is working :)

Thank you very much Gleb.

Regards
Tomas

#10 lore raw
Quoted 4 lines · Tomas Papan

patch is working :)

Thank you very much Gleb.

Thank you for your patience. Curious but it was.

--
Gleb.

#11 lore raw
In reply to Tomas Papan
Quoted 11 lines · Tomas Papan

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

Signature · 4 lines
|: 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 :|
#12 lore raw

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)