VirtualBox

Changeset 81461 in vbox for trunk


Ignore:
Timestamp:
Oct 22, 2019 9:09:55 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134186
Message:

IOM: Stat allocation fixes.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/IOMR3IoPort.cpp

    r81383 r81461  
    284284
    285285    pVM->iom.s.cIoPortRegs = idx + 1;
     286#ifdef VBOX_WITH_STATISTICS
     287    pVM->iom.s.cIoPortStats = cNewIoPortStats;
     288#endif
    286289    *phIoPorts = idx;
    287290    return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMMR3/IOMR3Mmio.cpp

    r81383 r81461  
    146146     */
    147147#ifndef VBOX_WITH_STATISTICS
    148     uint16_t const idxStats        = UINT16_MAX;
     148    uint16_t const idxStats      = UINT16_MAX;
    149149#else
    150     uint32_t const idxStats        = pVM->iom.s.cMmioStats;
     150    uint32_t const idxStats      = pVM->iom.s.cMmioStats;
    151151    uint32_t const cNewMmioStats = idxStats + 1;
    152152    AssertReturn(cNewMmioStats <= _64K, VERR_IOM_TOO_MANY_MMIO_REGISTRATIONS);
     
    188188
    189189    pVM->iom.s.cMmioRegs = idx + 1;
     190#ifdef VBOX_WITH_STATISTICS
     191    pVM->iom.s.cMmioStats = cNewMmioStats;
     192#endif
    190193    *phRegion = idx;
    191194    return VINF_SUCCESS;
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