VirtualBox

Changeset 81983 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 19, 2019 10:35:26 AM (5 years ago)
Author:
vboxsync
Message:

VMM: Switch the fixation of I/O port and MMIO registrations till after PDM has called the pfnInitComplete methods, so that DevPcArch can register MMIO handlers for reserved regions between 640KB and 1MB. bugref:9218

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

Legend:

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

    r81624 r81983  
    246246{
    247247#ifdef VBOX_WITH_STATISTICS
    248     if (enmWhat == VMINITCOMPLETED_RING3)
     248    if (enmWhat == VMINITCOMPLETED_RING0)
    249249    {
    250250        /*
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r81153 r81983  
    10251025    if (RT_SUCCESS(rc))
    10261026        rc = EMR3InitCompleted(pVM, enmWhat);
     1027    if (enmWhat == VMINITCOMPLETED_RING3)
     1028    {
     1029        if (RT_SUCCESS(rc))
     1030            rc = SSMR3RegisterStub(pVM, "rem", 1);
     1031    }
     1032    if (RT_SUCCESS(rc))
     1033        rc = PDMR3InitCompleted(pVM, enmWhat);
     1034
     1035    /* IOM *must* come after PDM, as device (DevPcArch) may register some final
     1036       handlers in their init completion method. */
    10271037    if (RT_SUCCESS(rc))
    10281038        rc = IOMR3InitCompleted(pVM, enmWhat);
    1029     if (enmWhat == VMINITCOMPLETED_RING3)
    1030     {
    1031         if (RT_SUCCESS(rc))
    1032             rc = SSMR3RegisterStub(pVM, "rem", 1);
    1033     }
    1034     if (RT_SUCCESS(rc))
    1035         rc = PDMR3InitCompleted(pVM, enmWhat);
    10361039    return rc;
    10371040}
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