thanks your mail??now below??

If the KVM supports nested VMX and QEMU starts with the arguments -enable-kvm 
and
    -cpu ..., + vmx, then the LOCK bit of the guest MSR_IA32_FEATURE_CONTROL and
    Enable VMX out of SMX operation bit will be set.


Well, I should add -enable-kvm parameters of the document which xml position, 
the exact stresses, how Canada?





------------------ ???????? ------------------
??????: "Daniel P. Berrange";<berra...@redhat.com>;
????????: 2017??1??5??(??????) ????8:53
??????: "????????????"<446844...@qq.com>; 
????: "libvirt-users"<libvirt-users@redhat.com>; 
????: Re: [libvirt] xml config nested



NB, in future please don't CC all possible mailing lists at once.
Just pick the most appropriate mailing list for your question. I've
dropped libvirt-list & libvirt-announce from the CC, since this is
a question most suited for libvirt-users.

On Thu, Jan 05, 2017 at 11:44:29AM +0800, ???????????? wrote:
> How to configure libvirt, so qemu-kvm support nested virtualization, virtual 
> machine installed operating system is 
> windows_7_ultimate_sp1_x64_dvd_618537.iso, configure libvirt xml file is as 
> follows:
> 
>  <cpu mode='custom' match='exact'>
>     <model fallback='allow'>core2duo</model>
>     <feature policy='require' name='vmx'/>
>   </cpu>
> 
> 
> or
> 
>   <cpu mode='host-model'>
>     <model fallback='allow'/>
>   </cpu>
> 
> or
>  <cpu mode='host-passthrough'>
>     <topology sockets='2' cores='2' threads='2'/>
>   </cpu>

Yes, that's the key guest configuration step - exposing the 'vmx' feature
to the guest.

In addition to that though, you need to make sure the kvm-intel kernel
module in your host has the "nested=1" parameter set.

eg in /etc/modprobe.d/kvm.conf you want

 options kvm_intel nested=1

If loaded correctly you should see

# cat /sys/module/kvm_intel/parameters/nested 
Y

if it says "N", then nested VMX will be disabled.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|
_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to