- Timestamp:
- May 24, 2018 7:27:55 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 122783
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/em.h
r70979 r72327 280 280 VMMR3DECL(int) EMR3SetExecutionPolicy(PUVM pUVM, EMEXECPOLICY enmPolicy, bool fEnforce); 281 281 VMMR3DECL(int) EMR3QueryExecutionPolicy(PUVM pUVM, EMEXECPOLICY enmPolicy, bool *pfEnforced); 282 VMMR3DECL(int) EMR3QueryMainExecutionEngine(PUVM pUVM, uint8_t *pbMainExecutionEngine); 282 283 283 284 VMMR3_INT_DECL(int) EMR3Init(PVM pVM); -
trunk/include/VBox/vmm/vm.h
r71415 r72327 935 935 936 936 937 /** @name VM_EXEC_ENGINE_XXX - VM::bMainExecutionEngine values.938 * @{ */939 /** Has not yet been set. */940 #define VM_EXEC_ENGINE_NOT_SET UINT8_C(0)941 /** Raw-mode. */942 #define VM_EXEC_ENGINE_RAW_MODE UINT8_C(1)943 /** Hardware assisted virtualization thru HM. */944 #define VM_EXEC_ENGINE_HW_VIRT UINT8_C(2)945 /** Hardware assisted virtualization thru native API (NEM). */946 #define VM_EXEC_ENGINE_NATIVE_API UINT8_C(3)947 /** @} */948 949 937 /** 950 938 * Helper that HM and NEM uses for safely modifying VM::bMainExecutionEngine. -
trunk/include/VBox/vmm/vmapi.h
r71129 r72327 38 38 * @ingroup grp_vm 39 39 * @{ */ 40 41 /** @name VM_EXEC_ENGINE_XXX - VM::bMainExecutionEngine values. 42 * @sa EMR3QueryMainExecutionEngine, VM_IS_RAW_MODE_ENABLED, VM_IS_HM_ENABLED, 43 * VM_IS_HM_OR_NEM_ENABLED, VM_IS_NEM_ENABLED, VM_SET_MAIN_EXECUTION_ENGINE 44 * @{ */ 45 /** Has not yet been set. */ 46 #define VM_EXEC_ENGINE_NOT_SET UINT8_C(0) 47 /** Raw-mode. */ 48 #define VM_EXEC_ENGINE_RAW_MODE UINT8_C(1) 49 /** Hardware assisted virtualization thru HM. */ 50 #define VM_EXEC_ENGINE_HW_VIRT UINT8_C(2) 51 /** Hardware assisted virtualization thru native API (NEM). */ 52 #define VM_EXEC_ENGINE_NATIVE_API UINT8_C(3) 53 /** @} */ 54 40 55 41 56 /** @def VM_RC_ADDR -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r72300 r72327 754 754 755 755 /** 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 */ 762 VMMR3DECL(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 /** 756 777 * Raise a fatal error. 757 778 * -
trunk/src/VBox/VMM/VMMR3/VMMR3.def
r69111 r72327 185 185 186 186 EMR3QueryExecutionPolicy 187 EMR3QueryMainExecutionEngine 187 188 EMR3SetExecutionPolicy 188 189
Note:
See TracChangeset
for help on using the changeset viewer.