Changeset 87713 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 11, 2021 6:27:01 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142757
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp
r87712 r87713 53 53 # define IOMMU_DTE_CACHE_MAX UINT16_MAX 54 54 /** The maximum number of IOTLB entries. */ 55 # define IOMMU_IOTLBE_MAX 12855 # define IOMMU_IOTLBE_MAX 96 56 56 /** The mask of bits covering the domain ID in the IOTLBE key. */ 57 57 # define IOMMU_IOTLB_DOMAIN_ID_MASK UINT64_C(0xffffff0000000000) … … 902 902 903 903 /** 904 * Destroys an IOTLB entry.905 *906 * @param pIotlbe The IOTLB entry to destroy.907 * @remarks An entry must only be destroyed if it's not in the cache!908 */909 static void iommuAmdIotlbEntryDestroy(PIOTLBE pIotlbe)910 {911 /* We must not erase the LRU node connections here! */912 RT_ZERO(pIotlbe->Core);913 RT_ZERO(pIotlbe->WalkResult);914 pIotlbe->fEvictPending = false;915 Assert(pIotlbe->Core.Key == IOMMU_IOTLB_KEY_NIL);916 }917 918 919 /**920 904 * Removes an IOTLB entry from the cache for the given key. 921 905 * … … 932 916 if (pIotlbe->fEvictPending) 933 917 STAM_COUNTER_INC(&pThis->StatIotlbeLazyEvictReuse); 934 iommuAmdIotlbEntryDestroy(pIotlbe); 935 Assert(!pIotlbe->fEvictPending); 918 919 RT_ZERO(pIotlbe->Core); 920 RT_ZERO(pIotlbe->WalkResult); 921 /* We must not erase the LRU node connections here! */ 922 pIotlbe->fEvictPending = false; 923 Assert(pIotlbe->Core.Key == IOMMU_IOTLB_KEY_NIL); 924 936 925 Assert(pThis->cCachedIotlbes > 0); 937 926 --pThis->cCachedIotlbes;
Note:
See TracChangeset
for help on using the changeset viewer.