Changeset 47737 in vbox
- Timestamp:
- Aug 14, 2013 7:50:27 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm.h
r47619 r47737 189 189 VMMR3DECL(bool) HMR3IsVpidActive(PUVM pVUM); 190 190 VMMR3DECL(bool) HMR3IsUXActive(PUVM pVUM); 191 VMMR3DECL(bool) HMR3IsSvmEnabled(PUVM pUVM); 192 VMMR3DECL(bool) HMR3IsVmxEnabled(PUVM pUVM); 191 193 192 194 VMMR3_INT_DECL(bool) HMR3IsEventPending(PVMCPU pVCpu); -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r47705 r47737 2665 2665 * enabled. 2666 2666 * 2667 * @returns true if nested pagingis being used, otherwise false.2667 * @returns true if VT-x or AMD-V is being used, otherwise false. 2668 2668 * @param pUVM The user mode VM handle. 2669 2669 * @sa HMIsEnabled, HMIsEnabledNotMacro. … … 2675 2675 VM_ASSERT_VALID_EXT_RETURN(pVM, false); 2676 2676 return pVM->fHMEnabled; /* Don't use the macro as the GUI may query us very very early. */ 2677 } 2678 2679 2680 /** 2681 * External interface for querying whether VT-x is being used. 2682 * 2683 * @returns true if VT-x is being used, otherwise false. 2684 * @param pUVM The user mode VM handle. 2685 * @sa HMR3IsSvmEnabled, HMIsEnabled 2686 */ 2687 VMMR3DECL(bool) HMR3IsVmxEnabled(PUVM pUVM) 2688 { 2689 UVM_ASSERT_VALID_EXT_RETURN(pUVM, false); 2690 PVM pVM = pUVM->pVM; 2691 VM_ASSERT_VALID_EXT_RETURN(pVM, false); 2692 return pVM->hm.s.vmx.fEnabled 2693 && pVM->hm.s.vmx.fSupported 2694 && pVM->fHMEnabled; 2695 } 2696 2697 2698 /** 2699 * External interface for querying whether AMD-V is being used. 2700 * 2701 * @returns true if VT-x is being used, otherwise false. 2702 * @param pUVM The user mode VM handle. 2703 * @sa HMR3IsVmxEnabled, HMIsEnabled 2704 */ 2705 VMMR3DECL(bool) HMR3IsSvmEnabled(PUVM pUVM) 2706 { 2707 UVM_ASSERT_VALID_EXT_RETURN(pUVM, false); 2708 PVM pVM = pUVM->pVM; 2709 VM_ASSERT_VALID_EXT_RETURN(pVM, false); 2710 return pVM->hm.s.svm.fEnabled 2711 && pVM->hm.s.svm.fSupported 2712 && pVM->fHMEnabled; 2677 2713 } 2678 2714
Note:
See TracChangeset
for help on using the changeset viewer.