Changeset 74054 in vbox for trunk/include/VBox
- Timestamp:
- Sep 4, 2018 5:23:52 AM (6 years ago)
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r74043 r74054 1193 1193 /** VMX: Supports RDTSCP. */ 1194 1194 uint32_t fVmxRdtscp : 1; 1195 /** VMX: Supports virtualize-x2APIC access. */1196 uint32_t fVmxVirtX2Apic Access: 1;1195 /** VMX: Supports virtualize-x2APIC mode. */ 1196 uint32_t fVmxVirtX2ApicMode : 1; 1197 1197 /** VMX: Supports VPID. */ 1198 1198 uint32_t fVmxVpid : 1; -
trunk/include/VBox/vmm/cpumctx.h
r74048 r74054 660 660 AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) svm.pvMsrBitmapR0, 8); 661 661 AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) svm.pvIoBitmapR0, 8); 662 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.GCPhysVmxon, 0x2e0); 663 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.GCPhysVmcs, 0x2e8); 664 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.enmInstrDiag, 0x2f0); 665 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.fInVmxRootMode, 0x2f4); 666 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.fInVmxNonRootMode, 0x2f5); 667 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pVmcsR0, 0x2f8); 668 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pVmcsR3, 0x300); 669 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pShadowVmcsR0, 0x308); 670 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pShadowVmcsR3, 0x310); 671 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pvVirtApicPageR0, 0x318); 672 AssertCompileMemberOffset(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pvVirtApicPageR3, 0x320); 673 AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pVmcsR0, 8); 674 AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pShadowVmcsR0, 8); 675 AssertCompileMemberAlignment(CPUMCTX, hwvirt.CPUM_UNION_NM(s.) vmx.pvVirtApicPageR0, 8); 662 676 663 677 AssertCompileMembersAtSameOffset(CPUMCTX, CPUM_UNION_STRUCT_NM(g,qw.) rax, CPUMCTX, CPUM_UNION_NM(g.) aGRegs); -
trunk/include/VBox/vmm/hm_vmx.h
r74047 r74054 1830 1830 * @{ 1831 1831 */ 1832 /** External interrupts cause VM-exits if set; otherwise dispatched through the 1833 * guest's IDT. */ 1832 /** External interrupt exiting. */ 1834 1833 #define VMX_PIN_CTLS_EXT_INT_EXIT RT_BIT(0) 1835 /** Non-maskable interrupts cause VM-exits if set; otherwise dispatched through 1836 * the guest's IDT. */ 1834 /** NMI exiting. */ 1837 1835 #define VMX_PIN_CTLS_NMI_EXIT RT_BIT(3) 1838 1836 /** Virtual NMIs. */ … … 1995 1993 #define VMX_PROC_CTLS2_RDTSCP RT_BIT(3) 1996 1994 /** Virtualize x2APIC mode. */ 1997 #define VMX_PROC_CTLS2_VIRT_X2APIC_ ACCESSRT_BIT(4)1995 #define VMX_PROC_CTLS2_VIRT_X2APIC_MODE RT_BIT(4) 1998 1996 /** VPID supported/enabled. */ 1999 1997 #define VMX_PROC_CTLS2_VPID RT_BIT(5) … … 2041 2039 #define VMX_BF_PROC_CTLS2_RDTSCP_SHIFT 3 2042 2040 #define VMX_BF_PROC_CTLS2_RDTSCP_MASK UINT32_C(0x00000008) 2043 #define VMX_BF_PROC_CTLS2_VIRT_X2APIC_ ACCESS_SHIFT42044 #define VMX_BF_PROC_CTLS2_VIRT_X2APIC_ ACCESS_MASKUINT32_C(0x00000010)2041 #define VMX_BF_PROC_CTLS2_VIRT_X2APIC_MODE_SHIFT 4 2042 #define VMX_BF_PROC_CTLS2_VIRT_X2APIC_MODE_MASK UINT32_C(0x00000010) 2045 2043 #define VMX_BF_PROC_CTLS2_VPID_SHIFT 5 2046 2044 #define VMX_BF_PROC_CTLS2_VPID_MASK UINT32_C(0x00000020) … … 2082 2080 #define VMX_BF_PROC_CTLS2_UNDEF_26_31_MASK UINT32_C(0xfc000000) 2083 2081 RT_BF_ASSERT_COMPILE_CHECKS(VMX_BF_PROC_CTLS2_, UINT32_C(0), UINT32_MAX, 2084 (VIRT_APIC_ACCESS, EPT, DESC_TABLE_EXIT, RDTSCP, VIRT_X2APIC_ ACCESS, VPID, WBINVD_EXIT,2082 (VIRT_APIC_ACCESS, EPT, DESC_TABLE_EXIT, RDTSCP, VIRT_X2APIC_MODE, VPID, WBINVD_EXIT, 2085 2083 UNRESTRICTED_GUEST, APIC_REG_VIRT, VIRT_INT_DELIVERY, PAUSE_LOOP_EXIT, RDRAND_EXIT, INVPCID, VMFUNC, 2086 2084 VMCS_SHADOWING, ENCLS_EXIT, RDSEED_EXIT, PML, EPT_VE, CONCEAL_FROM_PT, XSAVES_XRSTORS, UNDEF_21_24, … … 3437 3435 kVmxVInstrDiag_Vmread_VmxRoot, 3438 3436 /* VMLAUNCH/VMRESUME. */ 3437 kVmxVInstrDiag_Vmentry_AddrApicAccess, 3439 3438 kVmxVInstrDiag_Vmentry_AddrIoBitmapA, 3440 3439 kVmxVInstrDiag_Vmentry_AddrIoBitmapB, 3441 3440 kVmxVInstrDiag_Vmentry_AddrMsrBitmap, 3442 3441 kVmxVInstrDiag_Vmentry_AddrVirtApicPage, 3442 kVmxVInstrDiag_Vmentry_AddrVmreadBitmap, 3443 kVmxVInstrDiag_Vmentry_AddrVmwriteBitmap, 3444 kVmxVInstrDiag_Vmentry_ApicRegVirt, 3443 3445 kVmxVInstrDiag_Vmentry_BlocKMovSS, 3444 3446 kVmxVInstrDiag_Vmentry_Cpl, … … 3459 3461 kVmxVInstrDiag_Vmentry_TprThresholdVTpr, 3460 3462 kVmxVInstrDiag_Vmentry_VirtApicPagePtrReadPhys, 3463 kVmxVInstrDiag_Vmentry_VirtIntDelivery, 3461 3464 kVmxVInstrDiag_Vmentry_VirtNmi, 3465 kVmxVInstrDiag_Vmentry_VirtX2ApicTprShadow, 3466 kVmxVInstrDiag_Vmentry_VirtX2ApicVirtApic, 3462 3467 kVmxVInstrDiag_Vmentry_VmcsClear, 3463 3468 kVmxVInstrDiag_Vmentry_VmcsLaunch, 3464 3469 kVmxVInstrDiag_Vmentry_VmxRoot, 3470 kVmxVInstrDiag_Vmentry_Vpid, 3465 3471 /* Last member for determining array index limit. */ 3466 3472 kVmxVInstrDiag_Last
Note:
See TracChangeset
for help on using the changeset viewer.