Re: [libvirt-users] Why Guest does not retain Host CPU flags

2017-02-17 Thread Jiri Denemark
On Fri, Feb 17, 2017 at 11:23:54 +0530, akhilesh rawat wrote:
> ok thanks , but then can we know which all list of feature are supported by
> QEMU/KVM release.
> http://www.linux-kvm.org/page/KVM_Features

This page is not really about CPU features. It's not so easy to tell
whether a given CPU feature will be available to a guest or not as it
depends on a lot of things: QEMU and KVM version, machine type, hardware
settings, and even a specific revision of a given CPU model installed in
your host. Probably the simplest way to see the features is to check
them in a guest OS.

If everything goes well you should be able to get similar info from
libvirt via "virsh domcapabilities" command soon. Hopefully with QEMU
2.9.0 and libvirt 3.1.0.

Jirka

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users


Re: [libvirt-users] Why Guest does not retain Host CPU flags

2017-02-16 Thread Jiri Denemark
On Mon, Feb 06, 2017 at 09:51:06 +0530, akhilesh rawat wrote:
> hi ,
> 
> I am creating Guest by Libvirt tool " virt-install"  with cpu model as
> host.
> 
> After Guest creation i see Guest Missing quite no of flags which Host was
> having .
> 
> What could be the reason for this ?  I am expecting all flags of Host to e
> present in Guest as well when choosing cpu model as host .

Even if you request "host" CPU model, the guest will always see only a
subset of features the host supports. Not all features can be used in a
virtual machine and even if they can be used they usually need some
support form KVM or QEMU or both. That is both KVM and QEMU will filter
out features they cannot currently virtualize and thus you will get a
smaller set in comparison to the host CPU.

Jirka

___
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users