VirtualBox

Changeset 10154 in vbox


Ignore:
Timestamp:
Jul 3, 2008 1:46:05 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
32686
Message:

Documented the issue wrt to CS RPL and conforming segment in CPUMGetGuestCPL.

File:
1 edited

Legend:

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

    r10122 r10154  
    18181818    uint32_t cpl;
    18191819
     1820    /*
     1821     * The hidden CS.DPL register is always equal to the CPL, it is
     1822     * not affected by loading a conforming coding segment.
     1823     */
    18201824    if (CPUMAreHiddenSelRegsValid(pVM))
    18211825        cpl = pCtxCore->csHid.Attr.n.u2Dpl;
     
    18241828        if (RT_LIKELY(!pCtxCore->eflags.Bits.u1VM))
    18251829        {
     1830            /*
     1831             * The SS RPL is always equal to the CPL, while the CS RPL
     1832             * isn't necessarily equal if the segment is conforming.
     1833             * See section 4.11.1 in the AMD manual.
     1834             */
    18261835            cpl = (pCtxCore->ss & X86_SEL_RPL);
    18271836#ifndef IN_RING0
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