VirtualBox

Changeset 88790 in vbox


Ignore:
Timestamp:
Apr 30, 2021 7:45:05 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144123
Message:

Intel IOMMU: bugref:9967 Queued Invalidation WIP.

File:
1 edited

Legend:

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

    r88789 r88790  
    12391239                {
    12401240                    /* Verify table translation mode is legacy. */
    1241                     uint8_t const  fTtm = RT_BF_GET(pThis->uRtaddrReg, VTD_BF_RTADDR_REG_TTM);
     1241                    uint8_t const fTtm = RT_BF_GET(pThis->uRtaddrReg, VTD_BF_RTADDR_REG_TTM);
    12421242                    if (fTtm == VTD_TTM_LEGACY_MODE)
    12431243                    {
     
    16931693
    16941694                /* Paranoia. */
    1695                 Assert(cbQueue <= cbMaxQs); NOREF(cbMaxQs);
     1695                Assert(cbQueue <= cbMaxQs);
    16961696                Assert(!(offQueueTail & ~VTD_IQT_REG_RW_MASK));
    16971697                Assert(!(offQueueHead & ~VTD_IQH_REG_RW_MASK));
     
    17561756                        /*
    17571757                         * We've processed all requests and the lock shouldn't be held at this point.
    1758                          * Instead of re-acquiring the lock just to release it again and go back to
    1759                          * the thread loop using 'continue' here. It's a bit ugly but it certainly
     1758                         * Using 'continue' here allows us to skip re-acquiring the lock just to release
     1759                         * it again before going back to the thread loop. It's a bit ugly but it certainly
    17601760                         * helps with performance.
    17611761                         */
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