VirtualBox

Changeset 82792 in vbox for trunk


Ignore:
Timestamp:
Jan 20, 2020 5:41:36 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135750
Message:

VMM/APIC: Add statistics counter for APIC-ID MSR (x2APIC only).

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/APICAll.cpp

    r82329 r82792  
    19271927            /* Raw read, compatible with xAPIC: */
    19281928            case MSR_IA32_X2APIC_ID:
     1929            {
     1930                STAM_COUNTER_INC(&pVCpu->apic.s.StatIdMsrRead);
     1931                RT_FALL_THRU();
     1932            }
    19291933            case MSR_IA32_X2APIC_VERSION:
    19301934            case MSR_IA32_X2APIC_TPR:
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r82039 r82792  
    15471547        APIC_REG_COUNTER(&pApicCpu->StatIcrHiWrite,    "%u/IcrHiWrite",     "Number of times the ICR Hi is written.");
    15481548        APIC_REG_COUNTER(&pApicCpu->StatIcrFullWrite,  "%u/IcrFullWrite",   "Number of times the ICR full (send IPI, x2APIC) is written.");
     1549        APIC_REG_COUNTER(&pApicCpu->StatIdMsrRead,     "%u/IdMsrRead",      "Number of times the APIC-ID MSR is read.");
    15491550
    15501551        APIC_PROF_COUNTER(&pApicCpu->StatUpdatePendingIntrs,
  • trunk/src/VBox/VMM/include/APICInternal.h

    r82038 r82792  
    13571357    /** Number of times the full ICR (x2APIC send IPI) is written. */
    13581358    STAMCOUNTER                 StatIcrFullWrite;
     1359    /** Number of times the APIC-ID MSR is read. */
     1360    STAMCOUNTER                 StatIdMsrRead;
    13591361    /** @} */
    13601362#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette