VirtualBox

Changeset 9986 in vbox for trunk


Ignore:
Timestamp:
Jun 27, 2008 10:14:36 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32429
Message:

Introduced CPUMIsGuestInLongModeEx

Location:
trunk
Files:
2 edited

Legend:

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

    r9852 r9986  
    535535
    536536/**
     537 * Tests if the guest is running in long mode or not.
     538 *
     539 * @returns true if in long mode, otherwise false.
     540 * @param   pVM     The VM handle.
     541 */
     542DECLINLINE(bool) CPUMIsGuestInLongModeEx(PCPUMCTX pCtx)
     543{
     544    return (pCtx->msrEFER & MSR_K6_EFER_LMA) == MSR_K6_EFER_LMA;
     545}
     546
     547/**
    537548 * Tests if the guest is running in 16 bits paged protected or not.
    538549 *
  • trunk/src/VBox/VMM/HWACCM.cpp

    r9985 r9986  
    643643    /** @note The context supplied by REM is partial. If we add more checks here, be sure to verify that REM provides this info! */
    644644
    645     if (!CPUMIsGuestInLongMode(pVM))
     645    if (!CPUMIsGuestInLongModeEx(pCtx))
    646646    {
    647647        /* Too early for VT-x; Solaris guests will fail with a guru meditation otherwise; same for XP. */
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