VirtualBox

Changeset 10154

Show
Ignore:
Timestamp:
07/03/08 15:46:05 (2 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy