VirtualBox

Changeset 73395 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 30, 2018 3:19:54 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124013
Message:

VMM, CPUM: Nested VMX: bugref:9180 Implement Cr0Fixed[0|1] and Cr4Fixed[0|1] MSRs, nits.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm.h

    r73389 r73395  
    137137VMM_INT_DECL(void)              HMHCPagingModeChanged(PVM pVM, PVMCPU pVCpu, PGMMODE enmShadowMode, PGMMODE enmGuestMode);
    138138VMM_INT_DECL(int)               HMVmxGetHostMsrs(PVM pVM, PVMXMSRS pVmxMsrs);
    139 #if 0
    140139VMM_INT_DECL(int)               HMVmxGetHostMsr(PVM pVM, uint32_t idMsr, uint64_t *puValue);
    141 #endif
    142140/** @} */
    143141
  • trunk/include/VBox/vmm/hm_vmx.h

    r73389 r73395  
    23212321 * @{
    23222322 */
    2323 /** @todo declare these with a prefix that immediately identifies that they are
    2324  *        emulated by VirtualBox and not defined by Intel, see @bugref{9180#c6}.
    2325  */
    23262323/** VMCS revision identifier used for emulating VMX (bit 31 MBZ). Bump this
    23272324 *  arbitarily chosen identifier if incompatible changes to the layout of our VMCS
    23282325 *  structure is done. */
    2329 #define VMX_VMCS_REVISION_ID                                    UINT32_C(0x1d000001)
    2330 AssertCompile(!(VMX_VMCS_REVISION_ID & RT_BIT(31)));
     2326#define VMX_E_VMCS_REVISION_ID                                  UINT32_C(0x1d000001)
     2327AssertCompile(!(VMX_E_VMCS_REVISION_ID & RT_BIT(31)));
     2328
     2329/** CR0 bits set here must always be set when in VMX operation. */
     2330#define VMX_E_CR0_FIXED0                                        (X86_CR0_PE | X86_CR0_NE | X86_CR0_PG)
     2331/** CR4 bits set here must always be set when in VMX operation. */
     2332#define VMX_E_CR4_FIXED0                                        (X86_CR4_VMXE)
     2333
    23312334
    23322335/** @} */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette