VirtualBox

Changeset 72343 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 25, 2018 1:24:28 PM (7 years ago)
Author:
vboxsync
Message:

VMM,ConsoleImpl2: NEM and 64-bit guests. Sync NXE state with PGM. bugref:9044

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMAll.cpp

    r71910 r72343  
    358358
    359359/**
    360  * Checks if this VM is long-mode capable.
     360 * Checks if this VM is using HM and is long-mode capable.
     361 *
     362 * Use VMR3IsLongModeAllowed() instead of this, when possible.
    361363 *
    362364 * @returns true if long mode is allowed, false otherwise.
    363365 * @param   pVM         The cross context VM structure.
    364  */
    365 /** @todo NEM: Check users of HMIsLongModeAllowed */
     366 * @sa      VMR3IsLongModeAllowed, NEMHCIsLongModeAllowed
     367 */
    366368VMM_INT_DECL(bool) HMIsLongModeAllowed(PVM pVM)
    367369{
  • trunk/src/VBox/VMM/VMMAll/NEMAll.cpp

    r72272 r72343  
    2525#include <VBox/vmm/vm.h>
    2626
     27
     28/**
     29 * Checks if this VM is in NEM mode and is long-mode capable.
     30 *
     31 * Use VMR3IsLongModeAllowed() instead of this, when possible.
     32 *
     33 * @returns true if long mode is allowed, false otherwise.
     34 * @param   pVM         The cross context VM structure.
     35 * @sa      VMR3IsLongModeAllowed, HMIsLongModeAllowed
     36 */
     37VMM_INT_DECL(bool) NEMHCIsLongModeAllowed(PVM pVM)
     38{
     39    return pVM->nem.s.fAllow64BitGuests && VM_IS_NEM_ENABLED(pVM);
     40}
    2741
    2842
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