VirtualBox

Changeset 42427 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jul 26, 2012 11:48:01 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Fixed some selector arithmetic, introducing a new constand and renaming and old one to make things clearer. Also added CPUMGetGuestLdtrEx and make some (but not all) of SELM use this instead of shadow GDT.

Location:
trunk/include/VBox/vmm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r42420 r42427  
    9191VMMDECL(RTSEL)      CPUMGetGuestTR(PVMCPU pVCpu, PCPUMSELREGHID pHidden);
    9292VMMDECL(RTSEL)      CPUMGetGuestLDTR(PVMCPU pVCpu);
     93VMMDECL(RTSEL)      CPUMGetGuestLdtrEx(PVMCPU pVCpu, uint64_t *pGCPtrBase, uint32_t *pcbLimit);
    9394VMMDECL(uint64_t)   CPUMGetGuestCR0(PVMCPU pVCpu);
    9495VMMDECL(uint64_t)   CPUMGetGuestCR2(PVMCPU pVCpu);
  • trunk/include/VBox/vmm/cpumctx.h

    r42415 r42427  
    8686     && (   (a_pSelReg)->ValidSel == (a_pSelReg)->Sel \
    8787         || (   (a_pVCpu) /*!= NULL*/ \
    88              && (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_RPL) \
     88             && (a_pSelReg)->ValidSel == ((a_pSelReg)->Sel & X86_SEL_MASK_OFF_RPL) \
    8989             && ((a_pSelReg)->Sel      & X86_SEL_RPL) == 1 \
    9090             && ((a_pSelReg)->ValidSel & X86_SEL_RPL) == 0 \
  • trunk/include/VBox/vmm/selm.h

    r42407 r42427  
    8080VMMDECL(int)            SELMValidateAndConvertCSAddr(PVMCPU pVCpu, X86EFLAGS eflags, RTSEL SelCPL, RTSEL SelCS,
    8181                                                     PCPUMSELREG pSRegCS, RTGCPTR Addr, PRTGCPTR ppvFlat);
    82 VMMDECL(int)            SELMGetLDTFromSel(PVM pVM, RTSEL SelLdt, PRTGCPTR ppvLdt, unsigned *pcbLimit);
    8382#ifdef VBOX_WITH_RAW_MODE
    8483VMM_INT_DECL(void)      SELMLoadHiddenSelectorReg(PVMCPU pVCpu, PCCPUMCTX pCtx, PCPUMSELREG pSReg);
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