<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Hi, Perry and Karen:</div>
<div><br>
</div>
<div>I did some further investigation tonight. The VM instance was initiated with lot of parameters, among which, here is one line related to CPU model:</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>-cpu Nehalem,+rdtscp,+vmx,+ht,+ss,+acpi,+ds,+vme -enable-kvm </div>
<div><br>
</div>
<div><br>
</div>
<div>Based on qemu-kvm command and cpu_map.xml file, Nehalem and all of the flags are supported. However, when I tried to perform CPU check, KVM crashed again. The backtrace is identical to the ones I saw in failed VM instance log:</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>[root@as-cmp1 libvirt]# /usr/libexec/qemu-kvm -cpu Nehalem,check</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>VNC server running on `::1:5900'</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>KVM internal error. Suberror: 2</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>extra data[0]: 80000003</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>extra data[1]: 80000603</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>rax 00000000000003c3 rbx 00000000000008f2 rcx 000000000000013f rdx 000000000000ffdf</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>rsi 0000000000000006 rdi 000000000000c993 rsp 00000000000003aa rbp 000000000000f000</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>r8  0000000000000000 r9  0000000000000000 r10 0000000000000000 r11 0000000000000000</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>r12 0000000000000000 r13 0000000000000000 r14 0000000000000000 r15 0000000000000000</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>rip 00000000000010e2 rflags 00000286</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>cs c000 (000c0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>ds c000 (000c0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>es f000 (000f0000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>ss 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>fs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>gs 0000 (00000000/0000ffff p 1 dpl 3 db 0 s 1 type 3 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>tr 0000 (feffd000/00002088 p 1 dpl 0 db 0 s 0 type b l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>ldt 0000 (00000000/0000ffff p 1 dpl 0 db 0 s 0 type 2 l 0 g 0 avl 0)</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>gdt fc558/37</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>idt 0/3ff</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>cr0 10 cr2 0 cr3 0 cr4 0 cr8 0 efer 0</div>
<div><br>
</div>
</div>
<div>FYI, I am using this qemu-kvm version:</div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"></span>qemu-kvm-0.12.1.2-2.335.el6.x86_64</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The potential workaround is to use generic CPU model, such as KVM64, with performance penalty. I will give it a try and keep you posted. In the meanwhile, if you can think of anything else, please let me at your early convenience.</div>
<div><br>
</div>
<div>Thanks for your help!</div>
<div><br>
</div>
<div>Shixiong</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<br>
<div apple-content-edited="true">
<div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">
<div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif; ">
<br>
</div>
</div>
</div>
</div>
<div>
<div>On Feb 15, 2013, at 10:09 AM, Perry Myers <<a href="mailto:pmyers@redhat.com">pmyers@redhat.com</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">On 02/15/2013 10:06 AM, Shixiong Shang (shshang) wrote:<br>
<blockquote type="cite">Hi, Perry:<br>
<br>
Thanks a lot for chiming in! KVM crashed during operation. VM stayed in<br>
"starting" mode for about 10 secs and then went straight to "paused" mode. <br>
<br>
Here is the output you are looking for and appreciate the head up of<br>
RHEL 6.4 GA release! I cannot wait!<br>
</blockquote>
<br>
Thanks for the input below.  I don't see anything obvious.<br>
<br>
We might need to bring in a member of the kvm team to help out here.<br>
<br>
Karen, is there someone that could take a look at this backtrace?<br>
<br>
<a href="https://www.redhat.com/archives/rhos-list/2013-February/msg00046.html">https://www.redhat.com/archives/rhos-list/2013-February/msg00046.html</a><br>
<br>
Cheers,<br>
<br>
Perry<br>
<br>
<blockquote type="cite">Shixiong<br>
<br>
<br>
<br>
<br>
Last login: Thu Feb 14 21:03:17 2013 from 13.23.225.252<br>
[dmd@as-cmp1 ~]$ virsh capabilities<br>
<capabilities><br>
<br>
 <host><br>
   <uuid>ad4b57cf-bf15-06ef-a735-0be06abefc82</uuid><br>
   <cpu><br>
     <arch>x86_64</arch><br>
     <model>Nehalem</model><br>
     <vendor>Intel</vendor><br>
     <topology sockets='4' cores='2' threads='1'/><br>
     <feature name='rdtscp'/><br>
     <feature name='vmx'/><br>
     <feature name='ht'/><br>
     <feature name='ss'/><br>
     <feature name='acpi'/><br>
     <feature name='ds'/><br>
     <feature name='vme'/><br>
   </cpu><br>
   <power_management><br>
     <suspend_disk/><br>
   </power_management><br>
   <migration_features><br>
     <live/><br>
     <uri_transports><br>
       <uri_transport>tcp</uri_transport><br>
     </uri_transports><br>
   </migration_features><br>
   <topology><br>
     <cells num='1'><br>
       <cell id='0'><br>
         <cpus num='8'><br>
           <cpu id='0'/><br>
           <cpu id='1'/><br>
           <cpu id='2'/><br>
           <cpu id='3'/><br>
           <cpu id='4'/><br>
           <cpu id='5'/><br>
           <cpu id='6'/><br>
           <cpu id='7'/><br>
         </cpus><br>
       </cell><br>
     </cells><br>
   </topology><br>
   <secmodel><br>
     <model>selinux</model><br>
     <doi>0</doi><br>
   </secmodel><br>
 </host><br>
<br>
 <guest><br>
   <os_type>hvm</os_type><br>
   <arch name='i686'><br>
     <wordsize>32</wordsize><br>
     <emulator>/usr/libexec/qemu-kvm</emulator><br>
     <machine>rhel6.4.0</machine><br>
     <machine canonical='rhel6.4.0'>pc</machine><br>
     <machine>rhel6.3.0</machine><br>
     <machine>rhel6.2.0</machine><br>
     <machine>rhel6.1.0</machine><br>
     <machine>rhel6.0.0</machine><br>
     <machine>rhel5.5.0</machine><br>
     <machine>rhel5.4.4</machine><br>
     <machine>rhel5.4.0</machine><br>
     <domain type='qemu'><br>
     </domain><br>
     <domain type='kvm'><br>
       <emulator>/usr/libexec/qemu-kvm</emulator><br>
     </domain><br>
   </arch><br>
   <features><br>
     <cpuselection/><br>
     <deviceboot/><br>
     <acpi default='on' toggle='yes'/><br>
     <apic default='on' toggle='no'/><br>
     <pae/><br>
     <nonpae/><br>
   </features><br>
 </guest><br>
<br>
 <guest><br>
   <os_type>hvm</os_type><br>
   <arch name='x86_64'><br>
     <wordsize>64</wordsize><br>
     <emulator>/usr/libexec/qemu-kvm</emulator><br>
     <machine>rhel6.4.0</machine><br>
     <machine canonical='rhel6.4.0'>pc</machine><br>
     <machine>rhel6.3.0</machine><br>
     <machine>rhel6.2.0</machine><br>
     <machine>rhel6.1.0</machine><br>
     <machine>rhel6.0.0</machine><br>
     <machine>rhel5.5.0</machine><br>
     <machine>rhel5.4.4</machine><br>
     <machine>rhel5.4.0</machine><br>
     <domain type='qemu'><br>
     </domain><br>
     <domain type='kvm'><br>
       <emulator>/usr/libexec/qemu-kvm</emulator><br>
     </domain><br>
   </arch><br>
   <features><br>
     <cpuselection/><br>
     <deviceboot/><br>
     <acpi default='on' toggle='yes'/><br>
     <apic default='on' toggle='no'/><br>
   </features><br>
 </guest><br>
<br>
</capabilities><br>
<br>
<br>
<br>
[dmd@as-cmp1 ~]$ lsmod | grep kvm<br>
kvm_intel              53484  0 <br>
kvm                   315450  1 kvm_intel<br>
[dmd@as-cmp1 ~]$ <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Feb 15, 2013, at 6:04 AM, Perry Myers <pmyers@redhat.com<br>
<mailto:pmyers@redhat.com>><br>
wrote:<br>
<br>
<blockquote type="cite">On 02/15/2013 04:31 AM, Gary Kotton wrote:<br>
<blockquote type="cite">On 02/15/2013 04:54 AM, Shixiong Shang (shshang) wrote:<br>
<blockquote type="cite">Hi, Gary:<br>
<br>
I tried to put SELinux in PERMISSIVE mode and spawned up new VM using<br>
cirros image today, but still no luck. I spent the rest of the day<br>
searching Redhat bugs based on numerous error msgs in various log<br>
files. Found tons of stuff, but most of them didn't seem to be<br>
relevant and helpful.<br>
<br>
One thing caught my eyes is a case submitted back in 2010 and updated<br>
early this year. The KVM error message in instance console log is<br>
similar to the one in my case. Based on the description, seems like<br>
the KVM crash is caused by defective CPU or unsupported CPU model. I<br>
will try different machine for better luck.<br>
<br>
https://bugzilla.redhat.com/show_bug.cgi?id=639208<br>
</blockquote>
</blockquote>
<br>
Shixiong,<br>
<br>
</blockquote>
</blockquote>
</blockquote>
</div>
<br>
</body>
</html>