VirtualBox

Changeset 72267 in vbox for trunk/src


Ignore:
Timestamp:
May 20, 2018 11:28:40 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122715
Message:

VMM: Added NEMR3IsEnabled to go aloneside HMR3IsEnabled for the debugger and main API.

File:
1 edited

Legend:

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

    r71284 r72267  
    3434#include "NEMInternal.h"
    3535#include <VBox/vmm/vm.h>
     36#include <VBox/vmm/uvm.h>
    3637
    3738#include <iprt/asm.h>
     
    205206}
    206207
     208/**
     209 * External interface for querying whether native execution API is used.
     210 *
     211 * @returns true if NEM is being used, otherwise false.
     212 * @param   pUVM        The user mode VM handle.
     213 * @sa      HMR3IsEnabled
     214 */
     215VMMR3DECL(bool) NEMR3IsEnabled(PUVM pUVM)
     216{
     217    UVM_ASSERT_VALID_EXT_RETURN(pUVM, false);
     218    PVM pVM = pUVM->pVM;
     219    VM_ASSERT_VALID_EXT_RETURN(pVM, false);
     220    return VM_IS_NEM_ENABLED(pVM);
     221}
     222
    207223
    208224/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette