VirtualBox

Changeset 89455 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 2, 2021 8:05:34 AM (4 years ago)
Author:
vboxsync
Message:

Intel IOMMU: bugref:9967 Address translation, WIP.

File:
1 edited

Legend:

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

    r89454 r89455  
    24312431        DMARMEMREQREMAP MemReqRemap;
    24322432        RT_ZERO(MemReqRemap);
    2433         MemReqRemap.Req.uDmaAddr    = uIova;
    2434         MemReqRemap.Req.cbDma       = cbIova;
    2435         MemReqRemap.Req.fReqPerm    = fReqPerm;
    2436         MemReqRemap.Req.idDevice    = idDevice;
    2437         MemReqRemap.Req.Pasid       = NIL_PCIPASID;
    2438         MemReqRemap.Req.enmAddrType = PCIADDRTYPE_UNTRANSLATED;
    2439         MemReqRemap.Req.enmReqType  = enmReqType;
    2440         MemReqRemap.fTtm                = fTtm;
    2441         MemReqRemap.Iotlbe.GCPhysBase   = NIL_RTGCPHYS;
     2433        MemReqRemap.Req.uDmaAddr      = uIova;
     2434        MemReqRemap.Req.cbDma         = cbIova;
     2435        MemReqRemap.Req.fReqPerm      = fReqPerm;
     2436        MemReqRemap.Req.idDevice      = idDevice;
     2437        MemReqRemap.Req.Pasid         = NIL_PCIPASID;
     2438        MemReqRemap.Req.enmAddrType   = PCIADDRTYPE_UNTRANSLATED;
     2439        MemReqRemap.Req.enmReqType    = enmReqType;
     2440        MemReqRemap.fTtm              = fTtm;
     2441        MemReqRemap.Iotlbe.GCPhysBase = NIL_RTGCPHYS;
    24422442
    24432443        int rc;
     
    24752475
    24762476        *pcbContiguous = MemReqRemap.cbContiguous;
    2477         *pGCPhysSpa    = MemReqRemap.Iotlbe.GCPhysBase | DMAR_GET_PAGE_OFF_MASK(MemReqRemap.Iotlbe.cShift);
     2477        *pGCPhysSpa    = MemReqRemap.Iotlbe.GCPhysBase
     2478                       | (uIova & DMAR_GET_PAGE_OFF_MASK(MemReqRemap.Iotlbe.cShift));
    24782479        return rc;
    24792480    }
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