<div dir="ltr"><div><div><div><div>hi ,<br></div>yes there is Libvirt verison are not same as you pointed between Host (2.0)and Guest (old version 1.2). <br><br></div>Not sure if this can fix the issue .Guest image is pre -compiled image ,let me try if i can update the libvirt . <br><br></div> Else i feel In practice it seems Guest CPU cannot simulate non supported features  by Host CPU Model .  <br><br><br></div><div>thanks</div><div><br> <br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 2:43 AM, Martin Kletzander <span dir="ltr"><<a href="mailto:mkletzan@redhat.com" target="_blank">mkletzan@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 Sat, Jan 28, 2017 at 09:29:11PM +0530, akhilesh rawat wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi ,<br>
<br>
Created new thread .<br>
<br>
<br>
Environment:<br>
Bare Metal server + CentOs with qemu/KVM +libvirt for virtualization<br>
Guest Instantiated with virt-install with forced CPU model like below<br>
virt-install --virt-type kvm --name compute-0 --cpu<br>
Haswell,+fma,+movbe,+fsgsbase,<wbr>+bmi1,+hle,+avx2,+smep,+bmi2,+<wbr>erms,+invpcid,+rtm<br>
--ram=61440 --vcpus=20 --os-type=linux --os-variant=generic<br>
<br>
After guest installation  /proc/cpuinfo show model name as Haswell .<br>
However Libvirt virsh capabilities show CPU configuration as "SandyBridge .<br>
"<br>
<br>
</blockquote>
<br></span>
You are running the 'virsh capablities' in the guest as well, right?<br>
<br>
Make sure you have same versions of libvirt in the guest and the host<br>
so that they have the same CPU specifications<div><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
1. Could I get explanation of the why inconsistency .<br>
<br>
2. Is this expected behaviour<br>
<br>
3. Why libvirt does not show same CPU Model as /proc/cpuinfo for CPU Model<br>
info.<br>
<br>
My Aim : Nested Virtualization and Nested Guest needs CPU model as Haswell<br>
strictly .<br>
<br>
4. IS it possible alternative to succeed in my aim ?<br>
<br>
Thanks a lot for support. !<br>
<br>
<br>
<br>
Guest CPU config:<br>
processor    : 19<br>
vendor_id    : GenuineIntel<br>
cpu family    : 6<br>
model        : 60<br>
model name    : Intel Core Processor (Haswell)<br>
stepping    : 1<br>
microcode    : 0x1<br>
cpu MHz        : 1995.144<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<br>
pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm constant_tsc<br>
rep_good nopl eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic<br>
popcnt tsc_deadline_timer aes xsave avx hypervisor lahf_lm xsaveopt<br>
bogomips    : 4105.33<br>
clflush size    : 64<br>
cache_alignment    : 64<br>
address sizes    : 46 bits physical, 48 bits virtual<br>
power management:<br>
<br>
<capabilities><br>
<br>
 <host><br>
   <uuid>95c4e625-3383-4ec1-<wbr>9ee4-c47a87d93b97</uuid><br>
   <cpu><br>
     <arch>x86_64</arch><br>
     <model>SandyBridge</model><br>
     <vendor>Intel</vendor><br>
     <topology sockets='20' cores='1' threads='1'/><br>
     <feature name='hypervisor'/><br>
     <feature name='osxsave'/><br>
     <feature name='pcid'/><br>
     <pages unit='KiB' size='4'/><br>
     <pages unit='KiB' size='2048'/><br>
<br>
<br>
<br>
<br>
Host CPU config:<br>
processor    : 23<br>
vendor_id    : GenuineIntel<br>
cpu family    : 6<br>
model        : 45<br>
model name    : Intel(R) Xeon(R) CPU E5-2620 0 @ 2.00GHz<br>
stepping    : 7<br>
microcode    : 0x710<br>
cpu MHz        : 1200.000<br>
cache size    : 15360 KB<br>
physical id    : 1<br>
siblings    : 12<br>
core id        : 5<br>
cpu cores    : 6<br>
apicid        : 43<br>
initial apicid    : 43<br>
fpu        : yes<br>
fpu_exception    : yes<br>
cpuid level    : 13<br>
wp        : yes<br>
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca<br>
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx<br>
pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl<br>
xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor<br>
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic<br>
popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm<br>
tpr_shadow vnmi flexpriority ept vpid xsaveopt<br>
bogomips    : 4004.01<br>
clflush size    : 64<br>
cache_alignment    : 64<br>
address sizes    : 46 bits physical, 48 bits virtual<br>
power management:<br>
<br>
<br>
<br>
<br>
<br>
Br Aki<br>
</blockquote>
<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com" target="_blank">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman<wbr>/listinfo/libvirt-users</a><br>
</blockquote>
</blockquote></div><br></div>