VirtualBox

Changeset 58545 in vbox for trunk


Ignore:
Timestamp:
Nov 2, 2015 8:44:55 PM (9 years ago)
Author:
vboxsync
Message:

HMSVMR0.cpp: ulBit -> uBit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r58487 r58545  
    612612static void hmR0SvmSetMsrPermission(PVMCPU pVCpu, unsigned uMsr, SVMMSREXITREAD enmRead, SVMMSREXITWRITE enmWrite)
    613613{
    614     unsigned ulBit;
     614    unsigned uBit;
    615615    uint8_t *pbMsrBitmap = (uint8_t *)pVCpu->hm.s.svm.pvMsrBitmap;
    616616
     
    626626    {
    627627        /* Pentium-compatible MSRs. */
    628         ulBit = uMsr * 2;
     628        uBit = uMsr * 2;
    629629    }
    630630    else if (   uMsr >= 0xC0000000
     
    632632    {
    633633        /* AMD Sixth Generation x86 Processor MSRs. */
    634         ulBit = (uMsr - 0xC0000000) * 2;
     634        uBit = (uMsr - 0xC0000000) * 2;
    635635        pbMsrBitmap += 0x800;
    636636    }
     
    639639    {
    640640        /* AMD Seventh and Eighth Generation Processor MSRs. */
    641         ulBit = (uMsr - 0xC0001000) * 2;
     641        uBit = (uMsr - 0xC0001000) * 2;
    642642        pbMsrBitmap += 0x1000;
    643643    }
     
    648648    }
    649649
    650     Assert(ulBit < 0x3fff /* 16 * 1024 - 1 */);
     650    Assert(uBit < 0x3fff /* 16 * 1024 - 1 */);
    651651    if (enmRead == SVMMSREXIT_INTERCEPT_READ)
    652         ASMBitSet(pbMsrBitmap, ulBit);
     652        ASMBitSet(pbMsrBitmap, uBit);
    653653    else
    654         ASMBitClear(pbMsrBitmap, ulBit);
     654        ASMBitClear(pbMsrBitmap, uBit);
    655655
    656656    if (enmWrite == SVMMSREXIT_INTERCEPT_WRITE)
    657         ASMBitSet(pbMsrBitmap, ulBit + 1);
     657        ASMBitSet(pbMsrBitmap, uBit + 1);
    658658    else
    659         ASMBitClear(pbMsrBitmap, ulBit + 1);
     659        ASMBitClear(pbMsrBitmap, uBit + 1);
    660660
    661661    PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb;
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