VirtualBox

Changeset 96991 in vbox


Ignore:
Timestamp:
Oct 5, 2022 6:36:04 AM (2 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Let the MSR-read/write bitmap pointer passed to ASMBit[Set|Clear] be aligned.

File:
1 edited

Legend:

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

    r96990 r96991  
    11521152#endif
    11531153        if (fClear)
    1154             ASMBitClear(pbMsrBitmap + offMsrRead, iBit);
     1154            ASMBitClear(pbMsrBitmap, (offMsrRead << 3) + iBit);
    11551155    }
    11561156    else
    1157         ASMBitSet(pbMsrBitmap + offMsrRead, iBit);
     1157        ASMBitSet(pbMsrBitmap, (offMsrRead << 3) + iBit);
    11581158
    11591159    /*
     
    11721172#endif
    11731173        if (fClear)
    1174             ASMBitClear(pbMsrBitmap + offMsrWrite, iBit);
     1174            ASMBitClear(pbMsrBitmap, (offMsrWrite << 3) + iBit);
    11751175    }
    11761176    else
    1177         ASMBitSet(pbMsrBitmap + offMsrWrite, iBit);
     1177        ASMBitSet(pbMsrBitmap, (offMsrWrite << 3) + iBit);
    11781178}
    11791179
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