VirtualBox

Changeset 9985 in vbox


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

Relax the requirement for VT-x when in 64 bits mode.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/HWACCM.cpp

    r9939 r9985  
    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 #ifndef HWACCM_VMX_EMULATE_ALL
    646     /* Too early for VT-x; Solaris guests will fail with a guru meditation otherwise (investigate!) */
    647     if (pCtx->idtr.pIdt == 0 || pCtx->idtr.cbIdt == 0 || pCtx->tr == 0)
    648         return false;
    649 #endif
     645    if (!CPUMIsGuestInLongMode(pVM))
     646    {
     647        /* Too early for VT-x; Solaris guests will fail with a guru meditation otherwise; same for XP. */
     648        if (pCtx->idtr.pIdt == 0 || pCtx->idtr.cbIdt == 0 || pCtx->tr == 0)
     649            return false;
     650    }
    650651
    651652    /* The guest is about to complete the switch to protected mode. Wait a bit longer. */
  • trunk/src/recompiler/VBoxRecompiler.c

    r9817 r9985  
    11271127        Ctx.ssHid.u32Limit = env->segs[R_SS].limit;
    11281128        Ctx.ssHid.Attr.u   = (env->segs[R_SS].flags >> 8) & 0xF0FF;
     1129
     1130        Ctx.msrEFER        = env->efer;
    11291131
    11301132        /* Hardware accelerated raw-mode:
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