VirtualBox

Changeset 87733 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 12, 2021 1:40:48 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142785
Message:

AMD IOMMU: bugref:9654 PREFETCH_IOMMU_PAGES comment and nit.

File:
1 edited

Legend:

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

    r87730 r87733  
    45354535        case IOMMU_CMD_PREFETCH_IOMMU_PAGES:
    45364536        {
     4537            /* Linux doesn't use prefetching of IOMMU pages, so we don't bother for now. */
    45374538            STAM_COUNTER_INC(&pThis->StatCmdPrefIommuPages);
    4538             if (pThis->ExtFeat.n.u1PrefetchSup)
    4539             {
    4540                 /** @todo IOMMU: Implement prefetch. Pretend success until then. */
    4541                 return VINF_SUCCESS;
    4542             }
     4539            Assert(!pThis->ExtFeat.n.u1PrefetchSup);
    45434540            iommuAmdIllegalCmdEventInit(GCPhysCmd, (PEVT_ILLEGAL_CMD_ERR_T)pEvtError);
    45444541            return VERR_IOMMU_CMD_NOT_SUPPORTED;
     
    49964993        if (fVerbose)
    49974994        {
    4998             pHlp->pfnPrintf(pHlp, "    Prefetch support                        = %RTbool\n", ExtFeat.n.u1PrefetchSup);
     4995            pHlp->pfnPrintf(pHlp, "    Prefetch support                        = %RTbool\n",  ExtFeat.n.u1PrefetchSup);
    49994996            pHlp->pfnPrintf(pHlp, "    PPR support                             = %RTbool\n",  ExtFeat.n.u1PprSup);
    50004997            pHlp->pfnPrintf(pHlp, "    x2APIC support                          = %RTbool\n",  ExtFeat.n.u1X2ApicSup);
     
    60896086    /* Don't remove the commented lines below as it lets us see all features at a glance. */
    60906087    pThis->ExtFeat.u64 = 0;
    6091     //pThis->ExtFeat.n.u1PrefetchSup           = 0;
     6088    pThis->ExtFeat.n.u1PrefetchSup             = 0;
    60926089    //pThis->ExtFeat.n.u1PprSup                = 0;
    60936090    //pThis->ExtFeat.n.u1X2ApicSup             = 0;
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