Changeset 10695 in vbox
- Timestamp:
- Jul 16, 2008 12:17:31 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
include/VBox/hwaccm.h (modified) (1 diff)
-
src/VBox/Main/MachineDebuggerImpl.cpp (modified) (1 diff)
-
src/VBox/Main/idl/VirtualBox.xidl (modified) (2 diffs)
-
src/VBox/Main/include/MachineDebuggerImpl.h (modified) (1 diff)
-
src/VBox/VMM/HWACCM.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/hwaccm.h
r9115 r10695 241 241 242 242 /** 243 * Checks if we are currently using nested paging. 244 * 245 * @returns boolean 246 * @param pVM The VM to operate on. 247 */ 248 HWACCMR3DECL(bool) HWACCMR3IsNestedPagingActive(PVM pVM); 249 250 /** 243 251 * Checks hardware accelerated raw mode is allowed. 244 252 * -
trunk/src/VBox/Main/MachineDebuggerImpl.cpp
r9242 r10695 530 530 531 531 /** 532 * Returns the current nested paging flag. 533 * 534 * @returns COM status code 535 * @param enabled address of result variable 536 */ 537 STDMETHODIMP MachineDebugger::COMGETTER(HWVirtExNestedPagingEnabled)(BOOL *enabled) 538 { 539 if (!enabled) 540 return E_POINTER; 541 542 AutoWriteLock alock (this); 543 CHECK_READY(); 544 545 Console::SafeVMPtrQuiet pVM (mParent); 546 if (pVM.isOk()) 547 *enabled = HWACCMR3IsNestedPagingActive(pVM.raw()); 548 else 549 *enabled = false; 550 return S_OK; 551 } 552 553 /** 532 554 * Returns the current PAE flag. 533 555 * -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r10693 r10695 8627 8627 <interface 8628 8628 name="IMachineDebugger" extends="$unknown" 8629 uuid=" b3a02721-556a-4481-9d47-052a3f8cff90"8629 uuid="54ebce96-fa7d-4a4d-bc81-a7db41c29637" 8630 8630 wsmap="suppress" 8631 8631 > … … 8690 8690 <desc> 8691 8691 Flag indicating whether the VM is currently making use of CPU hardware 8692 virtualization extensions 8692 virtualization extensions. 8693 </desc> 8694 </attribute> 8695 8696 <attribute name="HWVirtExNestedPagingEnabled" type="boolean" readonly="yes"> 8697 <desc> 8698 Flag indicating whether the VM is currently making use of the nested paging 8699 CPU hardware virtualization extension. 8693 8700 </desc> 8694 8701 </attribute> -
trunk/src/VBox/Main/include/MachineDebuggerImpl.h
r8155 r10695 67 67 STDMETHOD(COMSETTER(LogEnabled))(BOOL enable); 68 68 STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled); 69 STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled))(BOOL *enabled); 69 70 STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled); 70 71 STDMETHOD(COMGETTER(VirtualTimeRate))(ULONG *pct); -
trunk/src/VBox/VMM/HWACCM.cpp
r10692 r10695 712 712 713 713 /** 714 * Checks if we are currently using nested paging. 715 * 716 * @returns boolean 717 * @param pVM The VM to operate on. 718 */ 719 HWACCMR3DECL(bool) HWACCMR3IsNestedPagingActive(PVM pVM) 720 { 721 return pVM->hwaccm.s.fNestedPaging; 722 } 723 724 /** 714 725 * Checks if internal events are pending. In that case we are not allowed to dispatch interrupts. 715 726 *
Note:
See TracChangeset
for help on using the changeset viewer.

