VirtualBox

Changeset 10122 in vbox


Ignore:
Timestamp:
Jul 2, 2008 9:22:41 PM (17 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
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