<div dir="ltr"><div><div><div><div>hi ,<br><br></div>yes you were correct . Model should as per qemu-kvm binary. thanks . <br> /usr/libexec/qemu-kvm -name compute-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,usb=off -cpu Haswell,+rtm,+hle -m 61440 -realtime mlock=off <br><br></div>This time KVM is invked with cpu model HAswell.<br><br></div>Also  from proc<br><br>rocessor    : 19<br>vendor_id    : GenuineIntel<br>cpu family    : 6<br>model        : 60<br><b>model name    : Intel Core Processor (Haswell)</b><br>stepping    : 1<br>microcode    : 0x1<br>cpu MHz        : 1995.110<br>cache size    : 4096 KB<br>fpu        : yes<br>fpu_exception    : yes<br>cpuid level    : 13<br>wp        : yes<br>flags        : fpu de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt<br><br></div><div><br></div><div><br></div><div>Akhilesh<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 27, 2017 at 3:23 PM, Jiri Denemark <span dir="ltr"><<a href="mailto:jdenemar@redhat.com" target="_blank">jdenemar@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jan 27, 2017 at 13:48:44 +0530, akhilesh rawat wrote:<br>
> hello ,<br>
><br>
> thanks for comments .<br>
><br>
> I tried now with force options for CPU flag which were not supported . Now<br>
> the command with non fully supported CPU model gets executed ,  But i am<br>
> surprised to see that still Guest  cpu model is not changed and still same<br>
> as host cpu model(SAndy Bridge)<br>
><br>
> Why don't i see the model as HAswell now , could you please comment.<br>
><br>
> Command used :<br>
><br>
> virt-install --virt-type kvm --name controller-0  --cpu<br>
> Haswell-noTSX,+fma,+movbe,+<wbr>fsgsbase,+bmi1,+avx2,+smep,+<wbr>bmi2,+erms,+invpcid<br>
> --ram=8120 --vcpus=4,sockets=1<br>
><br>
> Linux process for KVM :<br>
><br>
> 7479     1 37 10:13 ?        01:13:21 /usr/libexec/qemu-kvm -name<br>
</span>> controller-0 -S -machine pc-i440fx-rhel7.0.0,accel=kvm,<wbr>usb=off *-cpu<br>
> SandyBridge,*+fma,+pcid,+<wbr>movbe,+fsgsbase,+bmi1,+avx2,+<wbr>smep,+bmi2,+erms,+invpcid<br>
<span class="">> -m 8120 -realtime mlock=off -smp 4,sockets=1,cores=4,threads=1<br>
<br>
</span>Your qemu-kvm binary apparently doesn't know what Haswell-noTSX is and<br>
thus libvirt has to translate it to something QEMU understands. You can<br>
check supported CPU models with "/usr/libexec/qemu-kvm -cpu ?" (make<br>
sure the question mark is not expanded by the shell).<br>
<br>
Jirka<br>
</blockquote></div><br></div>