VirtualBox

Changeset 43387 in vbox for trunk/src/VBox/VMM/VMMR3/VMM.cpp


Ignore:
Timestamp:
Sep 21, 2012 9:40:25 AM (12 years ago)
Author:
vboxsync
Message:

VMM: HM cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMM.cpp

    r42975 r43387  
    105105#include <VBox/param.h>
    106106#include <VBox/version.h>
    107 #include <VBox/vmm/hwaccm.h>
     107#include <VBox/vmm/hm.h>
    108108#include <iprt/assert.h>
    109109#include <iprt/alloc.h>
     
    210210    AssertRCReturn(rc, rc);
    211211
    212     /* GC switchers are enabled by default. Turned off by HWACCM. */
     212    /* GC switchers are enabled by default. Turned off by HM. */
    213213    pVM->vmm.s.fSwitcherDisabled = false;
    214214
     
    448448    STAM_REG(pVM, &pVM->vmm.s.StatRZRetPGMFlushPending,     STAMTYPE_COUNTER, "/VMM/RZRet/PGMFlushPending",     STAMUNIT_OCCURENCES, "Number of VINF_PGM_POOL_FLUSH_PENDING returns.");
    449449    STAM_REG(pVM, &pVM->vmm.s.StatRZRetPendingRequest,      STAMTYPE_COUNTER, "/VMM/RZRet/PendingRequest",      STAMUNIT_OCCURENCES, "Number of VINF_EM_PENDING_REQUEST returns.");
    450     STAM_REG(pVM, &pVM->vmm.s.StatRZRetPatchTPR,            STAMTYPE_COUNTER, "/VMM/RZRet/PatchTPR",            STAMUNIT_OCCURENCES, "Number of VINF_EM_HWACCM_PATCH_TPR_INSTR returns.");
     450    STAM_REG(pVM, &pVM->vmm.s.StatRZRetPatchTPR,            STAMTYPE_COUNTER, "/VMM/RZRet/PatchTPR",            STAMUNIT_OCCURENCES, "Number of VINF_EM_HM_PATCH_TPR_INSTR returns.");
    451451    STAM_REG(pVM, &pVM->vmm.s.StatRZRetCallRing3,           STAMTYPE_COUNTER, "/VMM/RZCallR3/Misc",             STAMUNIT_OCCURENCES, "Number of Other ring-3 calls.");
    452452    STAM_REG(pVM, &pVM->vmm.s.StatRZCallPDMLock,            STAMTYPE_COUNTER, "/VMM/RZCallR3/PDMLock",          STAMUNIT_OCCURENCES, "Number of VMMCALLRING3_PDM_LOCK calls.");
     
    681681             */
    682682            if (   pVM->vmm.s.fUsePeriodicPreemptionTimers
    683                 && HWACCMR3IsVmxPreemptionTimerUsed(pVM))
     683                && HMR3IsVmxPreemptionTimerUsed(pVM))
    684684                pVM->vmm.s.fUsePeriodicPreemptionTimers = false;
    685685            LogRel(("VMM: fUsePeriodicPreemptionTimers=%RTbool\n", pVM->vmm.s.fUsePeriodicPreemptionTimers));
     
    937937VMMR3DECL(const char *) VMMR3GetRZAssertMsg1(PVM pVM)
    938938{
    939     if (HWACCMIsEnabled(pVM))
     939    if (HMIsEnabled(pVM))
    940940        return pVM->vmm.s.szRing0AssertMsg1;
    941941
     
    957957VMMR3DECL(const char *) VMMR3GetRZAssertMsg2(PVM pVM)
    958958{
    959     if (HWACCMIsEnabled(pVM))
     959    if (HMIsEnabled(pVM))
    960960        return pVM->vmm.s.szRing0AssertMsg2;
    961961
     
    14031403{
    14041404    VM_ASSERT_EMT(pVM);
    1405     if (HWACCMIsEnabled(pVM))
    1406         return HWACMMR3EnablePatching(pVM, pPatchMem, cbPatchMem);
     1405    if (HMIsEnabled(pVM))
     1406        return HMR3EnablePatching(pVM, pPatchMem, cbPatchMem);
    14071407
    14081408    return VERR_NOT_SUPPORTED;
     
    14191419VMMR3DECL(int) VMMR3DeregisterPatchMemory(PVM pVM, RTGCPTR pPatchMem, unsigned cbPatchMem)
    14201420{
    1421     if (HWACCMIsEnabled(pVM))
    1422         return HWACMMR3DisablePatching(pVM, pPatchMem, cbPatchMem);
     1421    if (HMIsEnabled(pVM))
     1422        return HMR3DisablePatching(pVM, pPatchMem, cbPatchMem);
    14231423
    14241424    return VINF_SUCCESS;
     
    23392339        PRINT_GROUP(VMCPU_FF_,NORMAL_PRIORITY,_MASK);
    23402340        PRINT_GROUP(VMCPU_FF_,RESUME_GUEST,_MASK);
    2341         PRINT_GROUP(VMCPU_FF_,HWACCM_TO_R3,_MASK);
     2341        PRINT_GROUP(VMCPU_FF_,HM_TO_R3,_MASK);
    23422342        PRINT_GROUP(VMCPU_FF_,ALL_REM,_MASK);
    23432343        if (c)
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