VirtualBox

Changeset 43391 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 21, 2012 10:11:14 AM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80869
Message:

VMM: HM cleanup.

Location:
trunk/src/VBox/VMM
Files:
6 edited

Legend:

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

    r43387 r43391  
    6464DECLINLINE(int) emR3ExecuteInstruction(PVM pVM, PVMCPU pVCpu, const char *pszPrefix, int rcGC = VINF_SUCCESS);
    6565static int emR3ExecuteIOInstruction(PVM pVM, PVMCPU pVCpu);
    66 static int emR3HwaccmForcedActions(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
     66static int emR3HmForcedActions(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
    6767
    6868#define EMHANDLERC_WITH_HM
     
    9393        ||  VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_HIGH_PRIORITY_PRE_RAW_MASK))
    9494    {
    95         rc = emR3HwaccmForcedActions(pVM, pVCpu, pCtx);
     95        rc = emR3HmForcedActions(pVM, pVCpu, pCtx);
    9696        if (rc != VINF_SUCCESS)
    9797            return rc;
     
    123123     */
    124124    rc = emR3HighPriorityPostForcedActions(pVM, pVCpu, rc);
    125     rc = emR3HwaccmHandleRC(pVM, pVCpu, pCtx, rc);
     125    rc = emR3HmHandleRC(pVM, pVCpu, pCtx, rc);
    126126    return rc;
    127127}
     
    392392 * @param   pCtx        Pointer to the guest CPU context.
    393393 */
    394 static int emR3HwaccmForcedActions(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
     394static int emR3HmForcedActions(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    395395{
    396396    /*
     
    499499            ||  VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_HIGH_PRIORITY_PRE_RAW_MASK))
    500500        {
    501             rc = emR3HwaccmForcedActions(pVM, pVCpu, pCtx);
     501            rc = emR3HmForcedActions(pVM, pVCpu, pCtx);
    502502            if (rc != VINF_SUCCESS)
    503503                break;
     
    568568            break;
    569569
    570         rc = emR3HwaccmHandleRC(pVM, pVCpu, pCtx, rc);
     570        rc = emR3HmHandleRC(pVM, pVCpu, pCtx, rc);
    571571        if (rc != VINF_SUCCESS)
    572572            break;
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r43387 r43391  
    12941294                if (pVM->hm.s.vmx.fUsePreemptTimer)
    12951295                {
    1296                     PCFGMNODE pCfgHwAccM = CFGMR3GetChild(CFGMR3GetRoot(pVM), "HM");
    1297                     int rc2 = CFGMR3QueryBoolDef(pCfgHwAccM, "UsePreemptTimer", &pVM->hm.s.vmx.fUsePreemptTimer, true);
     1296                    PCFGMNODE pCfgHm = CFGMR3GetChild(CFGMR3GetRoot(pVM), "HM");
     1297                    int rc2 = CFGMR3QueryBoolDef(pCfgHm, "UsePreemptTimer", &pVM->hm.s.vmx.fUsePreemptTimer, true);
    12981298                    AssertLogRelRC(rc2);
    12991299                }
  • trunk/src/VBox/VMM/VMMR3/VMMTests.cpp

    r43387 r43391  
    469469
    470470/* execute the switch. */
    471 VMMR3DECL(int) VMMDoHwAccmTest(PVM pVM)
     471VMMR3DECL(int) VMMDoHmTest(PVM pVM)
    472472{
    473473    uint32_t i;
  • trunk/src/VBox/VMM/include/EMHandleRCTmpl.h

    r43387 r43391  
    11/* $Id$ */
    22/** @file
    3  * EM - emR3[Raw|Hwaccm]HandleRC template.
     3 * EM - emR3[Raw|Hm]HandleRC template.
    44 */
    55
     
    3636int emR3RawHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc)
    3737#elif defined(EMHANDLERC_WITH_HM)
    38 int emR3HwaccmHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc)
     38int emR3HmHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc)
    3939#endif
    4040{
     
    336336#ifdef EMHANDLERC_WITH_HM
    337337        /*
    338          * Up a level, after HwAccM have done some release logging.
     338         * Up a level, after Hm have done some release logging.
    339339         */
    340340        case VERR_VMX_INVALID_VMCS_FIELD:
  • trunk/src/VBox/VMM/include/EMInternal.h

    r41728 r43391  
    445445int     emR3RawExecute(PVM pVM, PVMCPU pVCpu, bool *pfFFDone);
    446446int     emR3RawHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc);
    447 int     emR3HwaccmHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc);
     447int     emR3HmHandleRC(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, int rc);
    448448EMSTATE emR3Reschedule(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx);
    449449int     emR3ForcedActions(PVM pVM, PVMCPU pVCpu, int rc);
  • trunk/src/VBox/VMM/testcase/tstVMM-HM.cpp

    r43387 r43391  
    3434*   Defined Constants And Macros                                               *
    3535*******************************************************************************/
    36 #define TESTCASE    "tstVMM-HwAccm"
     36#define TESTCASE    "tstVMM-Hm"
    3737
    38 VMMR3DECL(int) VMMDoHwAccmTest(PVM pVM);
     38VMMR3DECL(int) VMMDoHmTest(PVM pVM);
    3939
    4040
     
    7676             TESTCASE ": causes kernel panics on linux regardless of what\n"
    7777             TESTCASE ": RTAssertDoBreakpoint returns. Only checked AMD-V on linux.\n");
    78     /** @todo Make tstVMM-HwAccm to cause kernel panics. */
     78    /** @todo Make tstVMM-Hm to cause kernel panics. */
    7979    return 1;
    8080
     
    9191         */
    9292        RTPrintf(TESTCASE ": Testing...\n");
    93         rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoHwAccmTest, 1, pVM);
     93        rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)VMMDoHmTest, 1, pVM);
    9494        AssertRC(rc);
    9595
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