Changeset 89455 in vbox for trunk/src/VBox
- Timestamp:
- Jun 2, 2021 8:05:34 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r89454 r89455 2431 2431 DMARMEMREQREMAP MemReqRemap; 2432 2432 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 2441 MemReqRemap.Iotlbe.GCPhysBase 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; 2442 2442 2443 2443 int rc; … … 2475 2475 2476 2476 *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)); 2478 2479 return rc; 2479 2480 }
Note:
See TracChangeset
for help on using the changeset viewer.