VirtualBox

Changeset 10122

Show
Ignore:
Timestamp:
07/02/08 23:22:41 (6 months ago)
Author:
vboxsync
Message:

Use the SS RPL instead of the CS RPL in CPUMGetGuestCPL for the raw mode case because of conforming code selectors.

Files:

Legend:

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

    r10097 r10122  
    12761276 
    12771277/** 
    1278  * Gets the CPU vendor  
     1278 * Gets the CPU vendor 
    12791279 * 
    12801280 * @returns CPU vendor 
     
    18241824        if (RT_LIKELY(!pCtxCore->eflags.Bits.u1VM)) 
    18251825        { 
    1826             cpl = (pCtxCore->cs & X86_SEL_RPL); 
     1826            cpl = (pCtxCore->ss & X86_SEL_RPL); 
    18271827#ifndef IN_RING0 
    18281828            if (cpl == 1) 
     
    18531853    if (!(pVM->cpum.s.Guest.cr0 & X86_CR0_PE)) 
    18541854        enmMode = CPUMMODE_REAL; 
    1855     else  
     1855    else 
    18561856    if (!(pVM->cpum.s.Guest.msrEFER & MSR_K6_EFER_LMA)) 
    18571857        enmMode = CPUMMODE_PROTECTED; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy