Changeset 13133 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Oct 9, 2008 1:41:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r13123 r13133 342 342 if (pVM->hwaccm.s.fNestedPaging) 343 343 val |= VMX_VMCS_CTRL_PROC_EXEC2_EPT; 344 #endif /* HWACCM_VTX_WITH_EPT */ 345 #ifdef HWACCM_VTX_WITH_VPID 344 346 else 345 347 if (pVM->hwaccm.s.vmx.fVPID) 346 348 val |= VMX_VMCS_CTRL_PROC_EXEC2_VPID; 347 #endif 349 #endif /* HWACCM_VTX_WITH_VPID */ 350 348 351 /* Mask away the bits that the CPU doesn't support */ 349 352 /** @todo make sure they don't conflict with the above requirements. */ … … 489 492 pVM->hwaccm.s.vmx.enmFlushContext = VMX_FLUSH_SINGLE_CONTEXT; 490 493 } 494 #ifdef HWACCM_VTX_WITH_VPID 491 495 else 492 496 if (pVM->hwaccm.s.vmx.fVPID) … … 508 512 pVM->hwaccm.s.vmx.enmFlushContext = VMX_FLUSH_SINGLE_CONTEXT; 509 513 } 514 #endif /* HWACCM_VTX_WITH_VPID */ 510 515 else 511 516 pVM->hwaccm.s.vmx.pfnSetupTaggedTLB = VMXR0SetupTLBDummy; … … 1554 1559 } 1555 1560 1561 #ifdef HWACCM_VTX_WITH_VPID 1556 1562 /** 1557 1563 * Setup the tagged TLB for VPID … … 1626 1632 #endif 1627 1633 } 1634 #endif /* HWACCM_VTX_WITH_VPID */ 1628 1635 1629 1636 /** … … 1803 1810 #if defined(HWACCM_VTX_WITH_EPT) && defined(LOG_ENABLED) 1804 1811 if ( pVM->hwaccm.s.fNestedPaging 1805 || pVM->hwaccm.s.vmx.fVPID) 1812 # ifdef HWACCM_VTX_WITH_VPID 1813 || pVM->hwaccm.s.vmx.fVPID 1814 # endif /* HWACCM_VTX_WITH_VPID */ 1815 ) 1806 1816 { 1807 1817 pCpu = HWACCMR0GetCurrentCpu(); … … 2984 2994 } 2985 2995 2996 #ifdef HWACCM_VTX_WITH_VPID 2986 2997 /** 2987 2998 * Flush the TLB (EPT) … … 3002 3013 AssertRC(rc); 3003 3014 } 3015 #endif /* HWACCM_VTX_WITH_VPID */ 3004 3016 3005 3017 /** … … 3017 3029 Assert(!pVM->hwaccm.s.fNestedPaging); 3018 3030 3031 #ifdef HWACCM_VTX_WITH_VPID 3019 3032 /* Skip it if a TLB flush is already pending. */ 3020 3033 if ( !fFlushPending 3021 3034 && pVM->hwaccm.s.vmx.fVPID) 3022 3035 VMXR0FlushVPID(pVM, pVM->hwaccm.s.vmx.enmFlushPage, GCVirt); 3036 #endif /* HWACCM_VTX_WITH_VPID */ 3023 3037 3024 3038 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.