<div dir="ltr">Hi Jim,<div><br></div><div>  Thank you for the great support and expertise. It helps so much! :-)</div><div><br></div><div>Regards,</div><div>Charles</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><pre>Charles Shih (史晨)
Quality Engineer
Red Hat, Platform QE, Virt QE, Section 1
Email: <a href="mailto:cheshi@redhat.com" target="_blank">cheshi@redhat.com</a>
IRC: cheshi @ #eng-china, #hyperv ,#qa, #virt
T: +86 10 65627484  - IP: 8387484
M: +86 18611268098</pre></div></div></div>
<br><div class="gmail_quote">On Wed, Jul 5, 2017 at 11:42 PM, Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.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 06/18/2017 09:01 PM, Charles Shih wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Dear All,<br>
<br>
     I'm reaching this mail-list to ask a small question about disabling '3dnowprefetch' CPU feature in Xen Guest using libvirt.<br>
<br>
     This is my environment:<br>
     Fedora release 26 (Twenty Six)<br>
     4.11.0-0.rc3.git0.2.fc26.x86_<wbr>64<br>
     xen-4.8.1-2.fc26.x86_64<br>
     libvirt-3.2.1-1.fc26.x86_64<br>
<br>
     I can disable '3dnowprefetch' CPU feature in guest via 'xl' command, with adding `cpuid='host,3dnowprefetch=0'` into the CFG file.<br>
<br></span>
     However, follow the instruction (<a href="https://libvirt.org/formatdomain.html#elementsCPU" rel="noreferrer" target="_blank">https://libvirt.org/formatdom<wbr>ain.html#elementsCPU</a> <<a href="https://libvirt.org/formatdomain.html#elementsCPU" rel="noreferrer" target="_blank">https://libvirt.org/formatdom<wbr>ain.html#elementsCPU</a>>), I added the following block into my XML file:<span class=""><br>
<br>
```<br>
   <cpu mode='host-passthrough' check='none'><br>
     <feature policy='disable' name='3dnowprefetch'/><br>
   </cpu><br>
```<br>
<br>
     Created the instance, seemed this feature was not being disabled in my guest. (I was able to see '3dnowprefetch' in `lscpu` outputs)<br>
<br>
     Anybody has idea on this? Does libvirt support this for Xen?<br>
</span></blockquote>
<br>
Currently, the libvirt libxl driver only supports VMX or SVM CPU feature, and for that you'd need libvirt 3.3.0<br>
<br>
<a href="http://libvirt.org/git/?p=libvirt.git;a=commit;h=c268b9eaeb4321ef311ae2e152b80752918eb289" rel="noreferrer" target="_blank">http://libvirt.org/git/?p=libv<wbr>irt.git;a=commit;h=c268b9eaeb4<wbr>321ef311ae2e152b80752918eb289</a><br>
<br>
More support for CPU customization is on the todo list. Contributions are always warmly welcomed :-).<br>
<br>
Regards,<br>
Jim<br>
</blockquote></div><br></div>