VirtualBox

Changeset 74102 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Sep 6, 2018 4:51:44 AM (6 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Naming nit.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllMsrs.cpp

    r74101 r74102  
    18831883    uint64_t uValidatedEfer;
    18841884    uint64_t const uOldEfer = pVCpu->cpum.s.Guest.msrEFER;
    1885     int rc = CPUMQueryValidatedGuestEfer(pVCpu->CTX_SUFF(pVM), pVCpu->cpum.s.Guest.cr0, uOldEfer, uValue, &uValidatedEfer);
     1885    int rc = CPUMIsGuestEferMsrWriteValid(pVCpu->CTX_SUFF(pVM), pVCpu->cpum.s.Guest.cr0, uOldEfer, uValue, &uValidatedEfer);
    18861886    if (RT_FAILURE(rc))
    18871887        return VERR_CPUM_RAISE_GP_0;
     
    65616561 * @param   uValidEfer  The new, validated EFER MSR value.
    65626562 *
    6563  * @remarks One would normally call CPUMQueryValidatedGuestEfer before calling this
    6564  *          function to change the EFER in order to perform an EFER transition.
     6563 * @remarks One would normally call CPUMIsGuestEferMsrWriteValid() before calling
     6564 *          this function to change the EFER in order to perform an EFER transition.
    65656565 */
    65666566VMMDECL(void) CPUMSetGuestEferMsrNoChecks(PVMCPU pVCpu, uint64_t uOldEfer, uint64_t uValidEfer)
     
    66076607
    66086608/**
    6609  * Validates an EFER MSR write.
     6609 * Validates an EFER MSR write and provides the new, validated EFER MSR.
    66106610 *
    66116611 * @returns VBox status code.
     
    66176617 *                          this function returns VINF_SUCCESS).
    66186618 */
    6619 VMMDECL(int) CPUMQueryValidatedGuestEfer(PVM pVM, uint64_t uCr0, uint64_t uOldEfer, uint64_t uNewEfer, uint64_t *puValidEfer)
     6619VMMDECL(int) CPUMIsGuestEferMsrWriteValid(PVM pVM, uint64_t uCr0, uint64_t uOldEfer, uint64_t uNewEfer, uint64_t *puValidEfer)
    66206620{
    66216621    /* #GP(0) If anything outside the allowed bits is set. */
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImplSvmInstr.cpp.h

    r74101 r74102  
    620620         * Continue validating guest-state and controls.
    621621         *
    622          * We pass CR0 as 0 to CPUMQueryValidatedGuestEfer below to skip the illegal
     622         * We pass CR0 as 0 to CPUMIsGuestEferMsrWriteValid() below to skip the illegal
    623623         * EFER.LME bit transition check. We pass the nested-guest's EFER as both the
    624624         * old and new EFER value to not have any guest EFER bits influence the new
     
    626626         */
    627627        uint64_t uValidEfer;
    628         rc = CPUMQueryValidatedGuestEfer(pVM, 0 /* CR0 */, pVmcbNstGst->u64EFER, pVmcbNstGst->u64EFER, &uValidEfer);
     628        rc = CPUMIsGuestEferMsrWriteValid(pVM, 0 /* CR0 */, pVmcbNstGst->u64EFER, pVmcbNstGst->u64EFER, &uValidEfer);
    629629        if (RT_FAILURE(rc))
    630630        {
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