VirtualBox

Changeset 79084 in vbox


Ignore:
Timestamp:
Jun 11, 2019 10:40:04 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Fix off-by-one bug while merging MSR bitmaps.

File:
1 edited

Legend:

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

    r79073 r79084  
    1003310033     * nested-guest using hardware-assisted VMX.
    1003410034     */
    10035     uint32_t const cbFrag = sizeof(uint64_t);
    10036     uint32_t const cFrags = X86_PAGE_4K_SIZE / cbFrag;
    10037     for (uint32_t i = 0; i <= cFrags; i++)
     10035    uint32_t const cFrags = X86_PAGE_4K_SIZE / sizeof(uint64_t);
     10036    for (uint32_t i = 0; i < cFrags; i++)
    1003810037        pu64MsrBitmap[i] = pu64MsrBitmapNstGst[i] | pu64MsrBitmapGst[i];
    1003910038}
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