VirtualBox

Changeset 73322 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 23, 2018 2:04:59 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123931
Message:

HM,SELM: Redefined HMIsRawModeCtxNeeded as accessor for VM::fHMNeedRawModeCtx, i.e. dropping old fashioned raw-mode from it's definition. bugref:9044

File:
1 edited

Legend:

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

    r73266 r73322  
    6060
    6161/**
    62  * Checks whether raw-mode context is required for any purpose.
    63  *
    64  * @retval  true if required either by raw-mode itself or by HM for doing
    65  *          switching the cpu to 64-bit mode.
    66  * @retval  false if not required.
     62 * Checks whether raw-mode context is required for HM purposes
     63 *
     64 * @retval  true if required by HM for doing switching the cpu to 64-bit mode.
     65 * @retval  false if not required by HM.
    6766 *
    6867 * @param   a_pVM       The cross context VM structure.
     
    7069 */
    7170#if HC_ARCH_BITS == 64
    72 # define HMIsRawModeCtxNeeded(a_pVM)        (!HMIsEnabled(a_pVM))
    73 #else
    74 # define HMIsRawModeCtxNeeded(a_pVM)        (!HMIsEnabled(a_pVM) || (a_pVM)->fHMNeedRawModeCtx)
     71# define HMIsRawModeCtxNeeded(a_pVM)        (false)
     72#else
     73# define HMIsRawModeCtxNeeded(a_pVM)        ((a_pVM)->fHMNeedRawModeCtx)
    7574#endif
    7675
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