<div dir="ltr">Hi, any comment or suggestion</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 10:55 AM, Lei Zhang <span dir="ltr"><<a href="mailto:lei12zhang12@gmail.com" target="_blank">lei12zhang12@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone<div><br></div><div> I want to know how can I use libvirt to detect what cpu features a virtual machine will see.<br>
<br>
I guess I could do it in following way:<br>
<br>
<span style="color:rgb(128,128,128)">1. </span>if cpu mode is 'custom', use 'virsh cpu-baseline --features' on the cpu model to get model features.<br>
<span style="color:rgb(128,128,128)">2. </span>if cpu mode is 'host-passthrough' or 'host-model', do a 'virsh capabilities' to list cpu features of physical host, they are identical to features of virtual machine.<br>
<br>
Is this right way to do things? <span style="font-size:12.8px">Look forward to your valuable comments.</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Best regards,</span></div><div><span style="font-size:12.8px">Lei</span></div></div>
</blockquote></div><br></div>