VirtualBox

Changeset 84854 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 16, 2020 5:25:11 PM (5 years ago)
Author:
vboxsync
Message:

VMM/pdmR3DevHlp_MmioCreateEx: Must mangle description for saved state. bugref:9218

File:
1 edited

Legend:

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

    r84826 r84854  
    142142    VM_ASSERT_EMT0_RETURN(pVM, VERR_VM_THREAD_NOT_EMT);
    143143    VM_ASSERT_STATE_RETURN(pVM, VMSTATE_CREATING, VERR_VM_INVALID_VM_STATE);
     144
     145    if (pDevIns->iInstance > 0)
     146    {
     147        pszDesc = MMR3HeapAPrintf(pVM, MM_TAG_PDM_DEVICE_DESC, "%s [%u]", pszDesc, pDevIns->iInstance);
     148        AssertReturn(pszDesc, VERR_NO_STR_MEMORY);
     149    }
    144150
    145151    /* HACK ALERT! Round the size up to page size.  The PCI bus should do something similar before mapping it. */
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