VirtualBox

Changeset 91897 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Oct 20, 2021 1:42:39 PM (3 years ago)
Author:
vboxsync
Message:

VMM,Devices: Add callbacks to required MMR3* APIs to the helper callbacks tables and convert devices and drivers to make use of those, bugref:10074

Location:
trunk/src/VBox/Devices/PC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/ACPI/VBoxAcpi.cpp

    r91885 r91897  
    347347            RTFileClose(hFileAml);
    348348        }
    349         MMR3HeapFree(pszAmlFilePath);
     349        PDMDevHlpMMHeapFree(pDevIns, pszAmlFilePath);
    350350    }
    351351
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r91238 r91897  
    37743774     * The latter starts never below 4G.
    37753775     */
    3776     PVM pVM                    = PDMDevHlpGetVM(pDevIns);
    3777     uint32_t        cbBelow4GB = MMR3PhysGetRamSizeBelow4GB(pVM);
    3778     uint64_t const  cbAbove4GB = MMR3PhysGetRamSizeAbove4GB(pVM);
    3779 
    3780     pThis->u64RamSize = MMR3PhysGetRamSize(pVM);
     3776    uint32_t        cbBelow4GB = PDMDevHlpMMPhysGetRamSizeBelow4GB(pDevIns);
     3777    uint64_t const  cbAbove4GB = PDMDevHlpMMPhysGetRamSizeAbove4GB(pDevIns);
     3778
     3779    pThis->u64RamSize = PDMDevHlpMMPhysGetRamSize(pDevIns);
    37813780    if (pThis->fPciPref64Enabled)
    37823781    {
  • trunk/src/VBox/Devices/PC/DevFwCommon.cpp

    r85948 r91897  
    826826         * DMI Physical Memory Array (Type 16) *
    827827         ***************************************/
    828         uint64_t const  cbRamSize = MMR3PhysGetRamSize(PDMDevHlpGetVM(pDevIns));
     828        uint64_t const  cbRamSize = PDMDevHlpMMPhysGetRamSize(pDevIns);
    829829
    830830        PDMIRAMARRAY pMemArray = (PDMIRAMARRAY)pszStr;
  • trunk/src/VBox/Devices/PC/DevPcArch.cpp

    r82968 r91897  
    244244                                               pcarchReservedMemoryWrite, pcarchReservedMemoryRead,
    245245                                               IOMMMIO_FLAGS_READ_PASSTHRU | IOMMMIO_FLAGS_WRITE_PASSTHRU | IOMMMIO_FLAGS_ABS,
    246                                                MMR3HeapAPrintf(pVM, MM_TAG_PGM_PHYS /* bad bird*/, "PC Arch Reserved #%u", iRegion),
     246                                               PDMDevHlpMMHeapAPrintf(pDevIns, MM_TAG_PGM_PHYS /* bad bird*/, "PC Arch Reserved #%u", iRegion),
    247247                                               &hMmioRegion);
    248248            AssertLogRelRCReturn(rc, rc);
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r91566 r91897  
    773773    LogFlow(("pcbiosInitComplete:\n"));
    774774
    775     PVM pVM                    = PDMDevHlpGetVM(pDevIns);
    776     uint64_t const  cbRamSize  = MMR3PhysGetRamSize(pVM);
    777     uint32_t const  cbBelow4GB = MMR3PhysGetRamSizeBelow4GB(pVM);
    778     uint64_t const  cbAbove4GB = MMR3PhysGetRamSizeAbove4GB(pVM);
     775    uint64_t const  cbRamSize  = PDMDevHlpMMPhysGetRamSize(pDevIns);
     776    uint32_t const  cbBelow4GB = PDMDevHlpMMPhysGetRamSizeBelow4GB(pDevIns);
     777    uint64_t const  cbAbove4GB = PDMDevHlpMMPhysGetRamSizeAbove4GB(pDevIns);
    779778
    780779    /*
  • trunk/src/VBox/Devices/PC/DevQemuFwCfg.cpp

    r86034 r91897  
    323323        else
    324324            LogRel(("QemuFwCfg: Failed to open file \"%s\" -> %Rrc\n", pszFilePath, rc));
    325         MMR3HeapFree(pszFilePath);
     325        PDMDevHlpMMHeapFree(pThis->pDevIns, pszFilePath);
    326326    }
    327327    else
     
    405405        else
    406406            LogRel(("QemuFwCfg: Failed to open file \"%s\" -> %Rrc\n", pszFilePath, rc));
    407         MMR3HeapFree(pszFilePath);
     407        PDMDevHlpMMHeapFree(pThis->pDevIns, pszFilePath);
    408408    }
    409409    else
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