VirtualBox

Changeset 72327 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 24, 2018 7:27:55 PM (7 years ago)
Author:
vboxsync
Message:

VMM: Expose VM::bMainExecutionEngine thru external API EMR3QueryMainExecutionEngine. bugref:9044

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

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

    r72300 r72327  
    754754
    755755/**
     756 * Queries the main execution engine of the VM.
     757 *
     758 * @returns VBox status code
     759 * @param   pUVM                    The user mode VM handle.
     760 * @param   pbMainExecutionEngine   Where to return the result, VM_EXEC_ENGINE_XXX.
     761 */
     762VMMR3DECL(int) EMR3QueryMainExecutionEngine(PUVM pUVM, uint8_t *pbMainExecutionEngine)
     763{
     764    AssertPtrReturn(pbMainExecutionEngine, VERR_INVALID_POINTER);
     765    *pbMainExecutionEngine = VM_EXEC_ENGINE_NOT_SET;
     766
     767    UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE);
     768    PVM pVM = pUVM->pVM;
     769    VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE);
     770
     771    *pbMainExecutionEngine = pVM->bMainExecutionEngine;
     772    return VINF_SUCCESS;
     773}
     774
     775
     776/**
    756777 * Raise a fatal error.
    757778 *
  • trunk/src/VBox/VMM/VMMR3/VMMR3.def

    r69111 r72327  
    185185
    186186    EMR3QueryExecutionPolicy
     187    EMR3QueryMainExecutionEngine
    187188    EMR3SetExecutionPolicy
    188189
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