VirtualBox

Changeset 70977 in vbox for trunk/include/VBox/vmm/vm.h


Ignore:
Timestamp:
Feb 12, 2018 8:45:31 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120824
Message:

NEM: Working on PGM notifications. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r70953 r70977  
    965965 *
    966966 * @param   a_pVM       The cross context VM structure.
    967  * @sa      HMR3IsEnabled, HMIsEnabled
     967 * @sa      VM_IS_HM_OR_NEM_ENABLED, VM_IS_HM_ENABLED, VM_IS_NEM_ENABLED.
    968968 * @internal
    969969 */
     
    981981 *
    982982 * @param   a_pVM       The cross context VM structure.
    983  * @sa      VM_IS_RAW_MODE_ENABLED, HMIsEnabled, HMR3IsEnabled
     983 * @sa      VM_IS_RAW_MODE_ENABLED, VM_IS_HM_ENABLED, VM_IS_NEM_ENABLED.
    984984 * @internal
    985985 */
    986986#define VM_IS_HM_OR_NEM_ENABLED(a_pVM)      ((a_pVM)->bMainExecutionEngine != VM_EXEC_ENGINE_RAW_MODE)
     987
     988/**
     989 * Checks whether HM is being used by this VM.
     990 *
     991 * @retval  true if HM (VT-x/AMD-v) is used.
     992 * @retval  false if not.
     993 *
     994 * @param   a_pVM       The cross context VM structure.
     995 * @sa      VM_IS_NEM_ENABLED, VM_IS_RAW_MODE_ENABLED, VM_IS_HM_OR_NEM_ENABLED.
     996 * @internal
     997 */
     998#define VM_IS_HM_ENABLED(a_pVM)             ((a_pVM)->bMainExecutionEngine == VM_EXEC_ENGINE_HW_VIRT)
     999
     1000/**
     1001 * Checks whether NEM is being used by this VM.
     1002 *
     1003 * @retval  true if a native hypervisor API is used.
     1004 * @retval  false if not.
     1005 *
     1006 * @param   a_pVM       The cross context VM structure.
     1007 * @sa      VM_IS_HM_ENABLED, VM_IS_RAW_MODE_ENABLED, VM_IS_HM_OR_NEM_ENABLED.
     1008 * @internal
     1009 */
     1010#define VM_IS_NEM_ENABLED(a_pVM)             ((a_pVM)->bMainExecutionEngine == VM_EXEC_ENGINE_NATIVE_API)
    9871011
    9881012
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