VirtualBox

Changeset 44793 in vbox


Ignore:
Timestamp:
Feb 21, 2013 6:39:05 PM (12 years ago)
Author:
vboxsync
Message:

VMM/VMMR0: HM bits.

File:
1 edited

Legend:

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

    r44657 r44793  
    283283}
    284284
     285
     286/**
     287 * Tests if the guest has paging enabled or not.
     288 *
     289 * @returns true if paging is enabled, otherwise false.
     290 * @param   pCtx    Current CPU context
     291 */
     292DECLINLINE(bool)    CPUMIsGuestPagingEnabledEx(PCPUMCTX pCtx)
     293{
     294    return !!(pCtx->cr0 & X86_CR0_PG);
     295}
     296
    285297#endif /* VBOX_WITHOUT_UNNAMED_UNIONS */
    286298
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