VirtualBox

Changeset 90042 in vbox for trunk


Ignore:
Timestamp:
Jul 6, 2021 4:59:11 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145536
Message:

AMD IOMMU: bugref:9654 Adjusted assertion in PDMAllIommu.cpp.

File:
1 edited

Legend:

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

    r90028 r90042  
    132132            if (RT_SUCCESS(rc))
    133133            {
     134                Assert(cbContig > 0 && cbContig <= cbRead);
    134135                /** @todo Handle strict return codes from PGMPhysRead. */
    135136                rc = pDevIns->CTX_SUFF(pHlp)->pfnPhysRead(pDevIns, GCPhysOut, pvBuf, cbContig, fFlags);
    136137                if (RT_SUCCESS(rc))
    137138                {
    138                     Assert(cbContig <= cbRead);
    139139                    cbRead -= cbContig;
    140140                    pvBuf   = (void *)((uintptr_t)pvBuf + cbContig);
     
    200200            if (RT_SUCCESS(rc))
    201201            {
     202                Assert(cbContig > 0 && cbContig <= cbWrite);
    202203                /** @todo Handle strict return codes from PGMPhysWrite. */
    203204                rc = pDevIns->CTX_SUFF(pHlp)->pfnPhysWrite(pDevIns, GCPhysOut, pvBuf, cbContig, fFlags);
    204205                if (RT_SUCCESS(rc))
    205206                {
    206                     Assert(cbContig <= cbWrite);
    207207                    cbWrite -= cbContig;
    208208                    pvBuf    = (const void *)((uintptr_t)pvBuf + cbContig);
     
    214214            else
    215215            {
    216                 LogFunc(("IOMMU memory write failed. idDevice=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", idDevice, GCPhys, cbWrite,
    217                          rc));
     216                LogFunc(("IOMMU memory write failed. idDevice=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", idDevice, GCPhys, cbWrite, rc));
    218217                break;
    219218            }
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