<div>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:</div><div><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; text-align: justify; background-color: rgb(250, 250, 252);"> <cpu mode='custom' match='exact'><br>    <model fallback='allow'>core2duo</model><br>    <feature policy='require' name='vmx'/><br>  </cpu><br></p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; text-align: justify; background-color: rgb(250, 250, 252);">or</p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; text-align: justify; background-color: rgb(250, 250, 252);">  <cpu mode='host-model'><br>    <model fallback='allow'/><br>  </cpu></p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; text-align: justify; background-color: rgb(250, 250, 252);">or<br> <cpu mode='host-passthrough'><br>    <topology sockets='2' cores='2' threads='2'/><br>  </cpu></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">We install libvirt in centos 7, qemu-kvm version is:</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">[Root @ localhost libexec] # ./qemu-kvm --version</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">QEMU emulator version 2.6.0 (qemu-kvm-ev-2.6.0-27.1.el7), Copyright (c) 2003-2008 Fabrice Bellard</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">Above is the basic environment and libvirt configuration, but in this environment to install the internal implementation of the following windows7 virtual machine kernel interface calls are as follows:</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">    </span>if (!FeatrueControlMsr.fields.enable_vmxon)</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">        </span>{</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">          </span>MyWriteFile(FileHanle, "Bios设置没有开启虚拟化\n", strlen("Bios设置没有开启虚拟化\n"), &ReturnLen);</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">                </span>MyCloseFile(FileHanle);</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">            </span>KdPrint(("Bios设置没有开启虚拟化"));</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">             </span>return FALSE;</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"></font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><span class="Apple-tab-span" style="white-space:pre">     </span>}</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体"><br></font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">in conclusion:</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">Through this kernel interface to determine the result is: Bios settings do not turn on virtualization</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">How to solve this problem? Hope to get your help.</font></p><p style="text-align: justify; background-color: rgb(250, 250, 252);"><font color="#333333" face="tahoma, 宋体">thank you very much。</font></p><p style="color: rgb(51, 51, 51); font-family: tahoma, 宋体; text-align: justify; background-color: rgb(250, 250, 252);"><br></p></div>