Changeset 10097 in vbox for trunk/src/VBox
- Timestamp:
- Jul 2, 2008 12:28:55 PM (17 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp
r9852 r10097 1819 1819 1820 1820 if (CPUMAreHiddenSelRegsValid(pVM)) 1821 cpl = pCtxCore-> ssHid.Attr.n.u2Dpl;1821 cpl = pCtxCore->csHid.Attr.n.u2Dpl; 1822 1822 else if (RT_LIKELY(pVM->cpum.s.Guest.cr0 & X86_CR0_PE)) 1823 1823 { 1824 1824 if (RT_LIKELY(!pCtxCore->eflags.Bits.u1VM)) 1825 1825 { 1826 cpl = (pCtxCore-> ss & X86_SEL_RPL);1826 cpl = (pCtxCore->cs & X86_SEL_RPL); 1827 1827 #ifndef IN_RING0 1828 1828 if (cpl == 1) -
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r10095 r10097 689 689 690 690 /* Set CPL */ 691 pVMCB->guest.u8CPL = pCtx-> ssHid.Attr.n.u2Dpl;691 pVMCB->guest.u8CPL = pCtx->csHid.Attr.n.u2Dpl; 692 692 693 693 /* RAX/EAX too, as VMRUN uses RAX as an implicit parameter. */
Note:
See TracChangeset
for help on using the changeset viewer.