VirtualBox

Changeset 87881 in vbox


Ignore:
Timestamp:
Feb 26, 2021 5:09:24 AM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Fix MemoryAccess Read/Write stats (was incorrectly swapped)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp

    r87868 r87881  
    42074207#ifdef VBOX_WITH_STATISTICS
    42084208        if (!fBulk)
    4209             STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemRead));
     4209            STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemWrite));
    42104210        else
    4211             STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemBulkRead));
     4211            STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemBulkWrite));
    42124212#else
    42134213        RT_NOREF2(pThis, fBulk);
     
    42214221#ifdef VBOX_WITH_STATISTICS
    42224222        if (!fBulk)
    4223             STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemWrite));
     4223            STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemRead));
    42244224        else
    4225             STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemBulkWrite));
     4225            STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMemBulkRead));
    42264226#else
    42274227        RT_NOREF2(pThis, fBulk);
     
    60376037}
    60386038
     6039
    60396040/**
    60406041 * @callback_method_impl{FNDBGFHANDLERDEV}
     
    66976698    IOMMU_LOCK_NORET(pDevIns, pThisR3);
    66986699
    6699     /* Close the command thread semaphore. */
    67006700    if (pThis->hEvtCmdThread != NIL_SUPSEMEVENT)
    67016701    {
     
    67056705
    67066706#ifdef IOMMU_WITH_IOTLBE_CACHE
    6707     /* Destroy the IOTLB cache. */
    67086707    if (pThisR3->paIotlbes)
    67096708    {
     
    68556854    /*
    68566855     * Register MSI support for the PCI device.
    6857      * This must be done -after- register it as a PCI device!
     6856     * This must be done -after- registering it as a PCI device!
    68586857     */
    68596858    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
     
    68806879
    68816880    /*
    6882      * Register saved state.
     6881     * Register saved state handlers.
    68836882     */
    68846883    rc = PDMDevHlpSSMRegisterEx(pDevIns, IOMMU_SAVED_STATE_VERSION, sizeof(IOMMU), NULL /* pszBefore */,
Note: See TracChangeset for help on using the changeset viewer.

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