VirtualBox

Changeset 87458 in vbox for trunk/src/VBox/Devices/Bus


Ignore:
Timestamp:
Jan 28, 2021 1:26:28 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142477
Message:

AMD IOMMU: bugref:9654 IOTLB cache bits.

File:
1 edited

Legend:

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

    r87426 r87458  
    628628 *
    629629 * @param   pThis           The IOMMU device state.
     630 * @param   uDomainId       The domain ID.
    630631 * @param   uIova           The I/O virtual address being accessed.
    631632 * @param   pWalkResult     The I/O page walk result of the access.
    632633 */
    633 static void iommuAmdIotlbAdd(PIOMMU pThis, uint64_t uIova, PCIOWALKRESULT pWalkResult)
     634static void iommuAmdIotlbAdd(PIOMMU pThis, uint16_t uDomainId, uint64_t uIova, PCIOWALKRESULT pWalkResult)
    634635{
    635636    Assert(!(uIova & X86_PAGE_4K_OFFSET_MASK));
     
    662663
    663664    /* Update the entry with the result of the page walk. */
    664     pIotlbe->Core.Key     = uIova;
    665     pIotlbe->Core.KeyLast = uIova + RT_BIT_64(pWalkResult->cShift) - 1;
     665    pIotlbe->Core.Key     = iommuAmdIotlbConstructKey(uDomainId, uIova);
     666    pIotlbe->Core.KeyLast = iommuAmdIotlbConstructKey(uDomainId, uIova + RT_BIT_64(pWalkResult->cShift) - 1);
    666667    pIotlbe->WalkResult   = *pWalkResult;
    667668
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette