VirtualBox

Changeset 13133 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 9, 2008 1:41:43 PM (16 years ago)
Author:
vboxsync
Message:

Disabled VPID support by default; seems to work, but no compelling reason to activate it yet (testing matrix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r13123 r13133  
    342342        if (pVM->hwaccm.s.fNestedPaging)
    343343            val |= VMX_VMCS_CTRL_PROC_EXEC2_EPT;
     344#endif /* HWACCM_VTX_WITH_EPT */
     345#ifdef HWACCM_VTX_WITH_VPID
    344346        else
    345347        if (pVM->hwaccm.s.vmx.fVPID)
    346348            val |= VMX_VMCS_CTRL_PROC_EXEC2_VPID;
    347 #endif
     349#endif /* HWACCM_VTX_WITH_VPID */
     350
    348351        /* Mask away the bits that the CPU doesn't support */
    349352        /** @todo make sure they don't conflict with the above requirements. */
     
    489492            pVM->hwaccm.s.vmx.enmFlushContext = VMX_FLUSH_SINGLE_CONTEXT;
    490493    }
     494#ifdef HWACCM_VTX_WITH_VPID
    491495    else
    492496    if (pVM->hwaccm.s.vmx.fVPID)
     
    508512            pVM->hwaccm.s.vmx.enmFlushContext = VMX_FLUSH_SINGLE_CONTEXT;
    509513    }
     514#endif /* HWACCM_VTX_WITH_VPID */
    510515    else
    511516        pVM->hwaccm.s.vmx.pfnSetupTaggedTLB = VMXR0SetupTLBDummy;
     
    15541559}
    15551560
     1561#ifdef HWACCM_VTX_WITH_VPID
    15561562/**
    15571563 * Setup the tagged TLB for VPID
     
    16261632#endif
    16271633}
     1634#endif /* HWACCM_VTX_WITH_VPID */
    16281635
    16291636/**
     
    18031810#if defined(HWACCM_VTX_WITH_EPT) && defined(LOG_ENABLED)
    18041811    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        )
    18061816    {
    18071817        pCpu = HWACCMR0GetCurrentCpu();
     
    29842994}
    29852995
     2996#ifdef HWACCM_VTX_WITH_VPID
    29862997/**
    29872998 * Flush the TLB (EPT)
     
    30023013    AssertRC(rc);
    30033014}
     3015#endif /* HWACCM_VTX_WITH_VPID */
    30043016
    30053017/**
     
    30173029    Assert(!pVM->hwaccm.s.fNestedPaging);
    30183030
     3031#ifdef HWACCM_VTX_WITH_VPID
    30193032    /* Skip it if a TLB flush is already pending. */
    30203033    if (   !fFlushPending
    30213034        && pVM->hwaccm.s.vmx.fVPID)
    30223035        VMXR0FlushVPID(pVM, pVM->hwaccm.s.vmx.enmFlushPage, GCVirt);
     3036#endif /* HWACCM_VTX_WITH_VPID */
    30233037
    30243038    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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