<div dir="ltr">Hi,<div><br></div><div style>I'm running libvert on a Debian 7 system. I have upgraded libvert and qemu from source (v1.06 and 1.5.0 respectively) and the problem persists. The guest OS is also a Debian 7 system running a non-SMP kernel. The error message from virt-manager is </div>

<div style><br></div><div style><div><font face="courier new, monospace">Error starting domain: unsupported configuration: guest and host CPU are not compatible: Host CPU does not provide required features: rtm, invpcid, erms, bmi2, smep, avx2, hle, bmi1, fsgsbase, pcid</font></div>

<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Traceback (most recent call last):</font></div><div><font face="courier new, monospace">  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper</font></div>

<div><font face="courier new, monospace">    callback(asyncjob, *args, **kwargs)</font></div><div><font face="courier new, monospace">  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 66, in tmpcb</font></div>

<div><font face="courier new, monospace">    callback(*args, **kwargs)</font></div><div><font face="courier new, monospace">  File "/usr/share/virt-manager/virtManager/domain.py", line 1114, in startup</font></div>

<div><font face="courier new, monospace">    self._backend.create()</font></div><div><font face="courier new, monospace">  File "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 698, in create</font></div>

<div><font face="courier new, monospace">    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)</font></div><div><font face="courier new, monospace">libvirtError: unsupported configuration: guest and host CPU are not compatible: Host CPU does not provide required features: rtm, invpcid, erms, bmi2, smep, avx2, hle, bmi1, fsgsbase, pcid</font></div>

<div><br></div><div style>but the host /proc/cpuinfo gives the correct flags as </div><div style><br></div><div style><div><font face="courier new, monospace">processor<span class="" style="white-space:pre">   </span>: 7</font></div>

<div><font face="courier new, monospace">vendor_id<span class="" style="white-space:pre">       </span>: GenuineIntel</font></div><div><font face="courier new, monospace">cpu family<span class="" style="white-space:pre">  </span>: 6</font></div>

<div><font face="courier new, monospace">model<span class="" style="white-space:pre">           </span>: 60</font></div><div><font face="courier new, monospace">model name<span class="" style="white-space:pre">    </span>: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz</font></div>

<div><font face="courier new, monospace">stepping<span class="" style="white-space:pre">        </span>: 3</font></div><div><font face="courier new, monospace">microcode<span class="" style="white-space:pre">      </span>: 0x7</font></div>

<div><font face="courier new, monospace">cpu MHz<span class="" style="white-space:pre">         </span>: 800.000</font></div><div><font face="courier new, monospace">cache size<span class="" style="white-space:pre">       </span>: 8192 KB</font></div>

<div><font face="courier new, monospace">physical id<span class="" style="white-space:pre">     </span>: 0</font></div><div><font face="courier new, monospace">siblings<span class="" style="white-space:pre">       </span>: 8</font></div>

<div><font face="courier new, monospace">core id<span class="" style="white-space:pre">         </span>: 3</font></div><div><font face="courier new, monospace">cpu cores<span class="" style="white-space:pre">      </span>: 4</font></div>

<div><font face="courier new, monospace">apicid<span class="" style="white-space:pre">          </span>: 7</font></div><div><font face="courier new, monospace">initial apicid<span class="" style="white-space:pre"> </span>: 7</font></div>

<div><font face="courier new, monospace">fpu<span class="" style="white-space:pre">             </span>: yes</font></div><div><font face="courier new, monospace">fpu_exception<span class="" style="white-space:pre">        </span>: yes</font></div>

<div><font face="courier new, monospace">cpuid level<span class="" style="white-space:pre">     </span>: 13</font></div><div><font face="courier new, monospace">wp<span class="" style="white-space:pre">            </span>: yes</font></div>

<div><font face="courier new, monospace">flags<span class="" style="white-space:pre">           </span>: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm</font></div>

<div><font face="courier new, monospace">bogomips<span class="" style="white-space:pre">        </span>: 6795.91</font></div><div><font face="courier new, monospace">clflush size<span class="" style="white-space:pre">     </span>: 64</font></div>

<div><font face="courier new, monospace">cache_alignment<span class="" style="white-space:pre"> </span>: 64</font></div><div><font face="courier new, monospace">address sizes<span class="" style="white-space:pre"> </span>: 39 bits physical, 48 bits virtual</font></div>

<div><font face="courier new, monospace">power management:</font></div></div><div><br></div><div style>Is there a place in the code I can look where the CPU flags are checked? I did create this VM on the Debian 7 versions of libvirt and qemu, but I don't see that it should be much of a problem since you can swap CPUs in virt-manager.</div>

<div style><br></div><div style>The end goal is to read Sandy Bridge+ RAPL MSRs from the guest OS. perf_events are now being exported, which is great for my work, but if I could read some of those RAPL MSRs, It would make my life orders of magnitude easier.</div>

<div style><br></div><div style>Any help would be much appreciated.</div><div style><br></div><div style>Best,</div><div><br></div><div style>Michael Giardino</div><div style><<a href="mailto:giardino@ece.gatech.edu">giardino@ece.gatech.edu</a>></div>

<div style><<a href="mailto:michael.giardino@gmail.com">michael.giardino@gmail.com</a>></div></div><div></div></div>