VirtualBox

Changeset 71772 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 9, 2018 2:27:54 PM (7 years ago)
Author:
vboxsync
Message:

Msi: Some R3 prefixes and some clenaup. [build fix]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/MsixCommon.cpp

    r71771 r71772  
    130130                    ("MSI-X must be accessed with 4-byte reads"),
    131131                    VERR_INTERNAL_ERROR);
    132     AssertMsgReturn(off < pPciDev->Int.s.cbMsixRegion,
     132    AssertMsgReturn(off + cb <= pPciDev->Int.s.cbMsixRegion,
    133133                    ("Out of bounds access for the MSI-X region\n"),
    134134                    VINF_IOM_MMIO_UNUSED_FF);
     
    149149                    ("MSI-X must be accessed with 4-byte reads"),
    150150                    VERR_INTERNAL_ERROR);
    151     AssertMsgReturn(off < pPciDev->Int.s.offMsixPba,
    152                     ("Trying to write to PBA\n"),
    153                     VINF_IOM_MMIO_UNUSED_FF);
     151    AssertMsgReturn(off + cb <= pPciDev->Int.s.offMsixPba,
     152                    ("Trying to write to PBA\n"), VINF_SUCCESS);
    154153
    155154    *(uint32_t *)msixGetPageOffset(pPciDev, off) = *(uint32_t *)pv;
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