Changeset 86901 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Nov 17, 2020 12:28:45 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevIoApic.cpp
r86868 r86901 252 252 /** Number of suppressed level-triggered interrupts (by remote IRR). */ 253 253 STAMCOUNTER StatSuppressedLevelIntr; 254 /** Number of IOMMU remapped interrupts (signaled by RTE). */ 255 STAMCOUNTER StatIommuRemappedIntr; 254 256 /** Number of IOMMU discarded interrupts (signaled by RTE). */ 255 257 STAMCOUNTER StatIommuDiscardedIntr; 258 /** Number of IOMMU remapped MSIs. */ 259 STAMCOUNTER StatIommuRemappedMsi; 256 260 /** Number of IOMMU denied or failed MSIs. */ 257 261 STAMCOUNTER StatIommuDiscardedMsi; … … 537 541 if (RT_SUCCESS(rcRemap)) 538 542 { 543 STAM_COUNTER_INC(&pThis->StatIommuRemappedIntr); 539 544 ioapicGetApicIntrFromMsi(&MsiOut, &ApicIntr); 540 545 Assert(ApicIntr.u8Polarity == IOAPIC_RTE_GET_POLARITY(u64Rte)); /* Ensure polarity hasn't changed. */ … … 918 923 int rcRemap = pThisCC->pIoApicHlp->pfnIommuMsiRemap(pDevIns, uBusDevFn, pMsi, &MsiOut); 919 924 if (RT_SUCCESS(rcRemap)) 925 { 926 STAM_COUNTER_INC(&pThis->StatIommuRemappedMsi); 920 927 ioapicGetApicIntrFromMsi(&MsiOut, &ApicIntr); 928 } 921 929 else 922 930 { … … 1487 1495 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatRedundantLevelIntr, STAMTYPE_COUNTER, "RedundantLevelIntr", STAMUNIT_OCCURENCES, "Number of redundant level-triggered interrupts (no IRR change)."); 1488 1496 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatSuppressedLevelIntr, STAMTYPE_COUNTER, "SuppressedLevelIntr", STAMUNIT_OCCURENCES, "Number of suppressed level-triggered interrupts by remote IRR."); 1489 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuDiscardedIntr, STAMTYPE_COUNTER, "IommuDiscardedIntr", STAMUNIT_OCCURENCES, "Number of interrupts discarded due to IOMMU."); 1490 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuDiscardedMsi, STAMTYPE_COUNTER, "IommuDiscardedMsi", STAMUNIT_OCCURENCES, "Number of MSIs discarded due to IOMMU."); 1497 1498 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuRemappedIntr, STAMTYPE_COUNTER, "Iommu/RemappedIntr", STAMUNIT_OCCURENCES, "Number of interrupts remapped by the IOMMU."); 1499 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuRemappedMsi, STAMTYPE_COUNTER, "Iommu/RemappedMsi", STAMUNIT_OCCURENCES, "Number of MSIs remapped by the IOMMU."); 1500 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuDiscardedIntr, STAMTYPE_COUNTER, "Iommu/DiscardedIntr", STAMUNIT_OCCURENCES, "Number of interrupts discarded by the IOMMU."); 1501 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatIommuDiscardedMsi, STAMTYPE_COUNTER, "Iommu/DiscardedMsi", STAMUNIT_OCCURENCES, "Number of MSIs discarded by the IOMMU."); 1491 1502 1492 1503 PDMDevHlpSTAMRegister(pDevIns, &pThis->StatEoiContention, STAMTYPE_COUNTER, "CritSect/ContentionSetEoi", STAMUNIT_OCCURENCES, "Number of times the critsect is busy during EOI writes causing trips to R3."); … … 1497 1508 # endif 1498 1509 for (size_t i = 0; i < RT_ELEMENTS(pThis->aStatVectors); i++) 1499 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->aStatVectors , STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES,1510 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->aStatVectors[i], STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, 1500 1511 "Number of ioapicSendMsi/pfnApicBusDeliver calls for the vector.", "Vectors/%02x", i); 1501 1512
Note:
See TracChangeset
for help on using the changeset viewer.