VirtualBox

Changeset 10097 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 2, 2008 12:28:55 PM (17 years ago)
Author:
vboxsync
Message:

Derive CPL from cs, not ss.

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

Legend:

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

    r9852 r10097  
    18191819
    18201820    if (CPUMAreHiddenSelRegsValid(pVM))
    1821         cpl = pCtxCore->ssHid.Attr.n.u2Dpl;
     1821        cpl = pCtxCore->csHid.Attr.n.u2Dpl;
    18221822    else if (RT_LIKELY(pVM->cpum.s.Guest.cr0 & X86_CR0_PE))
    18231823    {
    18241824        if (RT_LIKELY(!pCtxCore->eflags.Bits.u1VM))
    18251825        {
    1826             cpl = (pCtxCore->ss & X86_SEL_RPL);
     1826            cpl = (pCtxCore->cs & X86_SEL_RPL);
    18271827#ifndef IN_RING0
    18281828            if (cpl == 1)
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r10095 r10097  
    689689
    690690    /* Set CPL */
    691     pVMCB->guest.u8CPL     = pCtx->ssHid.Attr.n.u2Dpl;
     691    pVMCB->guest.u8CPL     = pCtx->csHid.Attr.n.u2Dpl;
    692692
    693693    /* RAX/EAX too, as VMRUN uses RAX as an implicit parameter. */
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