VirtualBox

Changeset 92527 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Nov 21, 2021 2:38:43 AM (3 years ago)
Author:
vboxsync
Message:

VMM/PDMDevHlp: Added PDMDevHlpGetMainExecutionEngine for VMMDevTesting. bugref:9044

File:
1 edited

Legend:

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

    r92162 r92527  
    46324632    LogFlow(("pdmR3DevHlp_GetCpuId: caller='%s'/%d: returns void - *pEax=%#x *pEbx=%#x *pEcx=%#x *pEdx=%#x\n",
    46334633             pDevIns->pReg->szName, pDevIns->iInstance, *pEax, *pEbx, *pEcx, *pEdx));
     4634}
     4635
     4636
     4637/** @interface_method_impl{PDMDEVHLPR3,pfnGetMainExecutionEngine} */
     4638static DECLCALLBACK(uint8_t) pdmR3DevHlp_GetMainExecutionEngine(PPDMDEVINS pDevIns)
     4639{
     4640    PDMDEV_ASSERT_DEVINS(pDevIns);
     4641    VM_ASSERT_EMT(pDevIns->Internal.s.pVMR3);
     4642    LogFlow(("pdmR3DevHlp_GetMainExecutionEngine: caller='%s'/%d:\n", pDevIns->pReg->szName, pDevIns->iInstance));
     4643    return pDevIns->Internal.s.pVMR3->bMainExecutionEngine;
    46344644}
    46354645
     
    51795189    pdmR3DevHlp_A20Set,
    51805190    pdmR3DevHlp_GetCpuId,
     5191    pdmR3DevHlp_GetMainExecutionEngine,
    51815192    pdmR3DevHlp_TMTimeVirtGet,
    51825193    pdmR3DevHlp_TMTimeVirtGetFreq,
     
    55755586    pdmR3DevHlp_A20Set,
    55765587    pdmR3DevHlp_GetCpuId,
     5588    pdmR3DevHlp_GetMainExecutionEngine,
    55775589    pdmR3DevHlp_TMTimeVirtGet,
    55785590    pdmR3DevHlp_TMTimeVirtGetFreq,
     
    57215733    NOREF(iLeaf); NOREF(pEax); NOREF(pEbx); NOREF(pEcx); NOREF(pEdx);
    57225734    AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance));
     5735}
     5736
     5737
     5738/** @interface_method_impl{PDMDEVHLPR3,pfnGetMainExecutionEngine} */
     5739static DECLCALLBACK(uint8_t) pdmR3DevHlp_Untrusted_GetMainExecutionEngine(PPDMDEVINS pDevIns)
     5740{
     5741    PDMDEV_ASSERT_DEVINS(pDevIns);
     5742    AssertReleaseMsgFailed(("Untrusted device called trusted helper! '%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance));
     5743    return VM_EXEC_ENGINE_NOT_SET;
    57235744}
    57245745
     
    62856306    pdmR3DevHlp_Untrusted_A20Set,
    62866307    pdmR3DevHlp_Untrusted_GetCpuId,
     6308    pdmR3DevHlp_Untrusted_GetMainExecutionEngine,
    62876309    pdmR3DevHlp_TMTimeVirtGet,
    62886310    pdmR3DevHlp_TMTimeVirtGetFreq,
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