Changeset 88791 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Apr 30, 2021 9:34:37 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88790 r88791 266 266 STAMCOUNTER StatMemBulkWriteR3; /**< Number of memory write bulk translation requests in R3. */ 267 267 STAMCOUNTER StatMemBulkWriteRZ; /**< Number of memory write bulk translation requests in RZ. */ 268 269 STAMCOUNTER StatCcInvDsc; /**< Number of Context-cache descriptors processed. */ 270 STAMCOUNTER StatIotlbInvDsc; /**< Number of IOTLB descriptors processed. */ 271 STAMCOUNTER StatDevtlbInvDsc; /**< Number of Device-TLB descriptors processed. */ 272 STAMCOUNTER StatIecInvDsc; /**< Number of Interrupt-Entry cache descriptors processed. */ 273 STAMCOUNTER StatInvWaitDsc; /**< Number of Invalidation wait descriptors processed. */ 274 STAMCOUNTER StatPasidIotlbInvDsc; /**< Number of PASID-based IOTLB descriptors processed. */ 275 STAMCOUNTER StatPasidCacheInvDsc; /**< Number of PASID-cache descriptors processed. */ 276 STAMCOUNTER StatPasidDevtlbInvDsc; /**< Number of PASID-based device-TLB descriptors processed. */ 268 277 #endif 269 278 } DMAR; … … 1492 1501 * 1493 1502 * @param pDevIns The IOMMU device instance. 1494 * @param pvRequests The requests data.1503 * @param pvRequests The requests to process. 1495 1504 * @param cbRequests The size of all requests (in bytes). 1496 1505 * @param fDw The descriptor width (VTD_IQA_REG_DW_128_BIT or 1497 1506 * VTD_IQA_REG_DW_256_BIT). 1498 * @param fTtm The current table translation mode. Must not be 1499 * VTD_TTM_RSVD. 1507 * @param fTtm The table translation mode. Must not be VTD_TTM_RSVD. 1500 1508 */ 1501 1509 static void dmarR3InvQueueProcessRequests(PPDMDEVINS pDevIns, void const *pvRequests, uint32_t cbRequests, uint8_t fDw, … … 1511 1519 } while (0) 1512 1520 1513 P CDMARpThis = PDMDEVINS_2_DATA(pDevIns, PDMAR);1521 PDMAR pThis = PDMDEVINS_2_DATA(pDevIns, PDMAR); 1514 1522 PCDMARR3 pThisR3 = PDMDEVINS_2_DATA_CC(pDevIns, PCDMARR3); 1515 1523 … … 1554 1562 switch (fDscType) 1555 1563 { 1556 case VTD_CC_INV_DSC_TYPE: LogRelMax(32, ("%s: CC\n", DMAR_LOG_PFX)); break;1557 case VTD_IOTLB_INV_DSC_TYPE: LogRelMax(32, ("%s: IOTLB\n", DMAR_LOG_PFX)); break;1558 case VTD_DEV_TLB_INV_DSC_TYPE: LogRelMax(32, ("%s: DEV_TLB\n", DMAR_LOG_PFX)); break;1559 case VTD_IEC_INV_DSC_TYPE: LogRelMax(32, ("%s: IEC_INV\n", DMAR_LOG_PFX)); break;1560 1561 1564 case VTD_INV_WAIT_DSC_TYPE: 1562 1565 { … … 1605 1608 DMAR_UNLOCK(pDevIns, pThisR3); 1606 1609 } 1610 1611 STAM_COUNTER_INC(&pThis->StatInvWaitDsc); 1607 1612 break; 1608 1613 } 1609 1614 1610 case VTD_ P_IOTLB_INV_DSC_TYPE: LogRelMax(32, ("%s: P_IOTLB\n", DMAR_LOG_PFX));break;1611 case VTD_ PC_INV_DSC_TYPE: LogRelMax(32, ("%s: PC_INV\n", DMAR_LOG_PFX)); break;1612 case VTD_ P_DEV_TLB_INV_DSC_TYPE: LogRelMax(32, ("%s: P_DEVL_TLB\n", DMAR_LOG_PFX));break;1613 {1614 break;1615 }1616 1615 case VTD_CC_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatCcInvDsc); break; 1616 case VTD_IOTLB_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatIotlbInvDsc); break; 1617 case VTD_DEV_TLB_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatDevtlbInvDsc); break; 1618 case VTD_IEC_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatIecInvDsc); break; 1619 case VTD_P_IOTLB_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatPasidIotlbInvDsc); break; 1620 case VTD_PC_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatPasidCacheInvDsc); break; 1621 case VTD_P_DEV_TLB_INV_DSC_TYPE: STAM_COUNTER_INC(&pThis->StatPasidDevtlbInvDsc); break; 1617 1622 default: 1618 1623 { … … 2365 2370 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatMemBulkWriteR3, STAMTYPE_COUNTER, "R3/MemBulkWrite", STAMUNIT_OCCURENCES, "Number of memory bulk write translation requests in R3."); 2366 2371 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatMemBulkWriteRZ, STAMTYPE_COUNTER, "RZ/MemBulkWrite", STAMUNIT_OCCURENCES, "Number of memory bulk write translation requests in RZ."); 2372 2373 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatCcInvDsc, STAMTYPE_COUNTER, "R3/QI/CcInv", STAMUNIT_OCCURENCES, "Number of cc_inv_dsc processed."); 2374 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIotlbInvDsc, STAMTYPE_COUNTER, "R3/QI/IotlbInv", STAMUNIT_OCCURENCES, "Number of iotlb_inv_dsc processed."); 2375 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatDevtlbInvDsc, STAMTYPE_COUNTER, "R3/QI/DevtlbInv", STAMUNIT_OCCURENCES, "Number of dev_tlb_inv_dsc processed."); 2376 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIecInvDsc, STAMTYPE_COUNTER, "R3/QI/IecInv", STAMUNIT_OCCURENCES, "Number of iec_inv processed."); 2377 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatInvWaitDsc, STAMTYPE_COUNTER, "R3/QI/InvWait", STAMUNIT_OCCURENCES, "Number of inv_wait_dsc processed."); 2378 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatPasidIotlbInvDsc, STAMTYPE_COUNTER, "R3/QI/PasidIotlbInv", STAMUNIT_OCCURENCES, "Number of p_iotlb_inv_dsc processed."); 2379 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatPasidCacheInvDsc, STAMTYPE_COUNTER, "R3/QI/PasidCacheInv", STAMUNIT_OCCURENCES, "Number of pc_inv_dsc pprocessed."); 2380 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatPasidDevtlbInvDsc, STAMTYPE_COUNTER, "R3/QI/PasidDevtlbInv", STAMUNIT_OCCURENCES, "Number of p_dev_tlb_inv_dsc processed."); 2367 2381 #endif 2368 2382
Note:
See TracChangeset
for help on using the changeset viewer.