Bootstrap

[VT虚拟化驱动]VMXON


引入头文件

需要引入一个头文件(ia32.h),里面定义了很多我们需要用到的结构
头文件下载地址:https://github.com/wbenny/ia32-doc/tree/master/out
只需要ia32.h即可,下载后引入项目中,然后在def.h中包含,网速较慢不方便下载的话可以复制文章末尾的(有一点中文注释)


一、执行VMXON

1.文档说明

31.5 VMM SETUP & TEAR DOWN
VMMs need to ensure that the processor is running in protected mode with paging before entering VMX operation. 
The following list describes the minimal steps required to enter VMX root operation with a VMM running at CPL = 0.
• Check VMX support in processor using CPUID. 
• Determine the VMX capabilities supported by the pro
;