VirtualBox

Changeset 92527 in vbox for trunk/include/VBox/vmm


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/include/VBox/vmm/pdmdev.h

    r92162 r92527  
    24252425
    24262426/** Current PDMDEVHLPR3 version number. */
    2427 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 62, 0)
     2427#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 63, 0)
    24282428
    24292429/**
     
    47904790
    47914791    /**
     4792     * Gets the main execution engine for the VM.
     4793     *
     4794     * @returns VM_EXEC_ENGINE_XXX
     4795     * @param   pDevIns             The device instance.
     4796     */
     4797    DECLR3CALLBACKMEMBER(uint8_t, pfnGetMainExecutionEngine,(PPDMDEVINS pDevIns));
     4798
     4799    /**
    47924800     * Get the current virtual clock time in a VM. The clock frequency must be
    47934801     * queried separately.
     
    52805288
    52815289    /**
     5290     * Gets the main execution engine for the VM.
     5291     *
     5292     * @returns VM_EXEC_ENGINE_XXX
     5293     * @param   pDevIns             The device instance.
     5294     */
     5295    DECLRCCALLBACKMEMBER(uint8_t, pfnGetMainExecutionEngine,(PPDMDEVINS pDevIns));
     5296
     5297    /**
    52825298     * Get the current virtual clock time in a VM. The clock frequency must be
    52835299     * queried separately.
     
    54765492
    54775493/** Current PDMDEVHLP version number. */
    5478 #define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 18, 0)
     5494#define PDM_DEVHLPRC_VERSION                    PDM_VERSION_MAKE(0xffe6, 19, 0)
    54795495
    54805496
     
    56885704     */
    56895705    DECLR0CALLBACKMEMBER(VMCPUID, pfnGetCurrentCpuId,(PPDMDEVINS pDevIns));
     5706
     5707    /**
     5708     * Gets the main execution engine for the VM.
     5709     *
     5710     * @returns VM_EXEC_ENGINE_XXX
     5711     * @param   pDevIns             The device instance.
     5712     */
     5713    DECLR0CALLBACKMEMBER(uint8_t, pfnGetMainExecutionEngine,(PPDMDEVINS pDevIns));
    56905714
    56915715    /** @name Timer handle method wrappers
     
    60376061
    60386062/** Current PDMDEVHLP version number. */
    6039 #define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 25, 0)
     6063#define PDM_DEVHLPR0_VERSION                    PDM_VERSION_MAKE(0xffe5, 26, 0)
    60406064
    60416065
     
    93999423
    94009424#ifdef IN_RING3
    9401 
    94029425/**
    94039426 * @copydoc PDMDEVHLPR3::pfnGetCpuId
     
    94079430    pDevIns->pHlpR3->pfnGetCpuId(pDevIns, iLeaf, pEax, pEbx, pEcx, pEdx);
    94089431}
     9432#endif
     9433
     9434/**
     9435 * @copydoc PDMDEVHLPR3::pfnGetMainExecutionEngine
     9436 */
     9437DECLINLINE(uint8_t) PDMDevHlpGetMainExecutionEngine(PPDMDEVINS pDevIns)
     9438{
     9439    return pDevIns->CTX_SUFF(pHlp)->pfnGetMainExecutionEngine(pDevIns);
     9440}
     9441
     9442#ifdef IN_RING3
    94099443
    94109444/**
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