[libvirt-users] Way to detect virtual machine cpu features

Lei Zhang lei12zhang12 at gmail.com
Tue Jul 4 01:08:01 UTC 2017


Hi, any comment or suggestion

On Thu, Jun 29, 2017 at 10:55 AM, Lei Zhang <lei12zhang12 at gmail.com> wrote:

> Hello everyone
>
>  I want to know how can I use libvirt to detect what cpu features a
> virtual machine will see.
>
> I guess I could do it in following way:
>
> 1. if cpu mode is 'custom', use 'virsh cpu-baseline --features' on the
> cpu model to get model features.
> 2. 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.
>
> Is this right way to do things? Look forward to your valuable comments.
>
> Best regards,
> Lei
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20170704/e4835540/attachment.htm>


More information about the libvirt-users mailing list