VirtualBox

Changeset 10695 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 16, 2008 12:17:31 PM (16 years ago)
Author:
vboxsync
Message:

Added HWVirtExNestedPagingEnabled method to MachineDebugger.

Location:
trunk/src/VBox/Main
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineDebuggerImpl.cpp

    r9242 r10695  
    530530
    531531/**
     532 * Returns the current nested paging flag.
     533 *
     534 * @returns COM status code
     535 * @param   enabled address of result variable
     536 */
     537STDMETHODIMP 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/**
    532554 * Returns the current PAE flag.
    533555 *
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r10693 r10695  
    86278627  <interface
    86288628     name="IMachineDebugger" extends="$unknown"
    8629      uuid="b3a02721-556a-4481-9d47-052a3f8cff90"
     8629     uuid="54ebce96-fa7d-4a4d-bc81-a7db41c29637"
    86308630     wsmap="suppress"
    86318631     >
     
    86908690      <desc>
    86918691        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.
    86938700      </desc>
    86948701    </attribute>
  • trunk/src/VBox/Main/include/MachineDebuggerImpl.h

    r8155 r10695  
    6767    STDMETHOD(COMSETTER(LogEnabled))(BOOL enable);
    6868    STDMETHOD(COMGETTER(HWVirtExEnabled))(BOOL *enabled);
     69    STDMETHOD(COMGETTER(HWVirtExNestedPagingEnabled))(BOOL *enabled);
    6970    STDMETHOD(COMGETTER(PAEEnabled))(BOOL *enabled);
    7071    STDMETHOD(COMGETTER(VirtualTimeRate))(ULONG *pct);
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