VirtualBox

Changeset 60396 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 8, 2016 4:17:15 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
106482
Message:

VMMDev,PDM,HM: Changed the VMMDev heap interface a little so HM can init without the fake PCI BIOS code having run.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r58164 r60396  
    29262926             * It is about to be unmapped, just clean up.
    29272927             */
    2928             PDMDevHlpUnregisterVMMDevHeap(pPciDev->pDevIns, pThis->GCPhysVMMDevHeap);
     2928            PDMDevHlpRegisterVMMDevHeap(pPciDev->pDevIns, NIL_RTGCPHYS, pThis->pVMMDevHeapR3, VMMDEV_HEAP_SIZE);
    29292929            pThis->GCPhysVMMDevHeap = NIL_RTGCPHYS32;
    29302930            rc = VINF_SUCCESS;
     
    41514151            return PDMDevHlpVMSetError(pDevIns, rc, RT_SRC_POS,
    41524152                                       N_("Failed to allocate %u bytes of memory for the VMM device heap"), PAGE_SIZE);
     4153
     4154        /* Register the memory area with PDM so HM can access it before it's mapped. */
     4155        rc = PDMDevHlpRegisterVMMDevHeap(pDevIns, NIL_RTGCPHYS, pThis->pVMMDevHeapR3, VMMDEV_HEAP_SIZE);
     4156        AssertLogRelRCReturn(rc, rc);
    41534157    }
    41544158
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