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

Lei Zhang lei12zhang12 at gmail.com
Thu Jun 29 02:55:32 UTC 2017


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/20170629/8787677d/attachment.htm>


More information about the libvirt-users mailing list