- Timestamp:
- Feb 2, 2021 5:35:56 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142550
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
r87510 r87525 135 135 /** The number of offset bits in the system physical address. */ 136 136 uint8_t cShift; 137 /** The I/O permissions allowed by thetranslation (IOMMU_IO_PERM_XXX). */138 uint8_t f IoPerm;137 /** The I/O permissions allowed for this translation (IOMMU_IO_PERM_XXX). */ 138 uint8_t fPerm; 139 139 /** Padding. */ 140 140 uint8_t abPadding[2]; … … 638 638 Assert(pWalkResult); 639 639 Assert(pWalkResult->cShift < 63); 640 Assert(pWalkResult->f IoPerm != IOMMU_IO_PERM_NONE);640 Assert(pWalkResult->fPerm != IOMMU_IO_PERM_NONE); 641 641 642 642 /* … … 2700 2700 pWalkResult->GCPhysSpa = uIova; 2701 2701 pWalkResult->cShift = 0; 2702 pWalkResult->f IoPerm= fDtePerm;2702 pWalkResult->fPerm = fDtePerm; 2703 2703 return VINF_IOMMU_ADDR_TRANSLATION_DISABLED; 2704 2704 } … … 2825 2825 pWalkResult->GCPhysSpa = PtEntity.u64 & IOMMU_PTENTITY_ADDR_MASK; 2826 2826 pWalkResult->cShift = X86_PAGE_4K_SHIFT; 2827 pWalkResult->f IoPerm= fPtePerm;2827 pWalkResult->fPerm = fPtePerm; 2828 2828 return VINF_SUCCESS; 2829 2829 } … … 2843 2843 pWalkResult->GCPhysSpa = GCPhysPte; 2844 2844 pWalkResult->cShift = cShift; 2845 pWalkResult->f IoPerm= fPtePerm;2845 pWalkResult->fPerm = fPtePerm; 2846 2846 return VINF_SUCCESS; 2847 2847 } … … 2956 2956 { 2957 2957 #ifdef IOMMU_WITH_IOTLBE_CACHE 2958 if ( pWalkResultPrev->cShift 2959 && pWalkResultPrev->f IoPerm == pWalkResult->fIoPerm2958 if ( pWalkResultPrev->cShift == pWalkResult->cShift 2959 && pWalkResultPrev->fPerm == pWalkResult->fPerm 2960 2960 && iommuAmdDteLookupIsAddrPhysContig(pWalkResultPrev, pWalkResult)) 2961 2961 return true; … … 3086 3086 Assert(WalkResult.cShift == 0); 3087 3087 Assert(WalkResult.GCPhysSpa == uIova); 3088 Assert((WalkResult.f IoPerm & fAccess) == fAccess);3088 Assert((WalkResult.fPerm & fAccess) == fAccess); 3089 3089 /** @todo IOMMU: Add to IOLTB cache. */ 3090 3090 }
Note:
See TracChangeset
for help on using the changeset viewer.