Changeset 73885 in vbox for trunk/include/VBox
- Timestamp:
- Aug 25, 2018 4:00:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r73868 r73885 2862 2862 kVmxVInstrDiag_Vmptrst_Cpl, 2863 2863 kVmxVInstrDiag_Vmptrst_PtrMap, 2864 kVmxVInstrDiag_Vmptrst_Success, 2864 2865 /* VMCLEAR. */ 2865 2866 kVmxVInstrDiag_Vmclear_Cpl, 2867 kVmxVInstrDiag_Vmclear_PtrAbnormal, 2868 kVmxVInstrDiag_Vmclear_PtrAlign, 2869 kVmxVInstrDiag_Vmclear_PtrMap, 2870 kVmxVInstrDiag_Vmclear_PtrReadPhys, 2871 kVmxVInstrDiag_Vmclear_PtrVmxon, 2872 kVmxVInstrDiag_Vmclear_PtrWidth, 2873 kVmxVInstrDiag_Vmclear_Success, 2866 2874 /* Last member for determining array index limit. */ 2867 2875 kVmxVInstrDiag_Last 2868 2876 } VMXVINSTRDIAG; 2869 2877 AssertCompileSize(VMXVINSTRDIAG, 4); 2878 2879 /** @name VMX_V_VMCS_STATE_XXX - Virtual VMCS state. 2880 * @{ */ 2881 /** VMCS state clear. */ 2882 #define VMX_V_VMCS_STATE_CLEAR RT_BIT(0) 2883 /** VMCS state launched. */ 2884 #define VMX_V_VMCS_STATE_LAUNCHED RT_BIT(1) 2885 /** @} */ 2870 2886 2871 2887 /** … … 2876 2892 * The first 8 bytes are as per Intel spec. 24.2 "Format of the VMCS Region". 2877 2893 * 2894 * The offset and size of the VMCS state field (fVmcsState) is also fixed as we use 2895 * it to offset into guest memory. 2896 * 2878 2897 * Although the guest is supposed to access the VMCS only through the execution of 2879 2898 * VMX instructions (VMREAD, VMWRITE etc.), since the VMCS may reside in guest … … 2889 2908 /** 0x4 - VMX-abort indicator. */ 2890 2909 uint32_t u32VmxAbortId; 2891 /** 0x8 - Reserved for future. */ 2892 uint32_t au32Reserved0[8]; 2910 /** 0x8 - VMCS state, see VMX_V_VMCS_STATE_XXX. */ 2911 uint8_t fVmcsState; 2912 /** 0x9 - Reserved for future. */ 2913 uint8_t au8Padding0[3]; 2914 /** 0xc - Reserved for future. */ 2915 uint32_t au32Reserved0[7]; 2893 2916 2894 2917 /** @name 16-bit control fields. … … 3300 3323 typedef const VMXVVMCS *PCVMXVVMCS; 3301 3324 AssertCompileSize(VMXVVMCS, X86_PAGE_4K_SIZE); 3325 AssertCompileMemberSize(VMXVVMCS, fVmcsState, sizeof(uint8_t)); 3302 3326 AssertCompileMemberOffset(VMXVVMCS, u32VmxAbortId, 0x004); 3327 AssertCompileMemberOffset(VMXVVMCS, fVmcsState, 0x008); 3303 3328 AssertCompileMemberOffset(VMXVVMCS, u16Vpid, 0x028); 3304 3329 AssertCompileMemberOffset(VMXVVMCS, GuestEs, 0x03e);
Note:
See TracChangeset
for help on using the changeset viewer.