VirtualBox

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


Ignore:
Timestamp:
Oct 22, 2019 4:04:00 PM (5 years ago)
Author:
vboxsync
Message:

VMM: Added PGMPHYS_ROM_FLAGS_MAYBE_MISSING_FROM_STATE to PGMR3PhysRomRegister. Needed for EFI restore hack. bugref:6940

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

Legend:

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

    r81150 r81454  
    22762276                    pHlp->pfnPrintf(pHlp, "    %RGp-%RGp %-20s %s\n",
    22772277                                    pCur->GCPhys + iFirstPage * X86_PAGE_SIZE,
    2278                                     pCur->GCPhys + iPage      * X86_PAGE_SIZE,
     2278                                    pCur->GCPhys + iPage      * X86_PAGE_SIZE - 1,
    22792279                                    pszType, pszMore);
    22802280                else
    22812281                    pHlp->pfnPrintf(pHlp, "    %RGp-%RGp %s\n",
    22822282                                    pCur->GCPhys + iFirstPage * X86_PAGE_SIZE,
    2283                                     pCur->GCPhys + iPage      * X86_PAGE_SIZE,
     2283                                    pCur->GCPhys + iPage      * X86_PAGE_SIZE - 1,
    22842284                                    pszType);
    22852285
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r81436 r81454  
    40594059    AssertPtrReturn(pvBinary, VERR_INVALID_PARAMETER);
    40604060    AssertPtrReturn(pszDesc, VERR_INVALID_POINTER);
    4061     AssertReturn(!(fFlags & ~(PGMPHYS_ROM_FLAGS_SHADOWED | PGMPHYS_ROM_FLAGS_PERMANENT_BINARY)), VERR_INVALID_PARAMETER);
     4061    AssertReturn(!(fFlags & ~PGMPHYS_ROM_FLAGS_VALID_MASK), VERR_INVALID_PARAMETER);
    40624062    VM_ASSERT_STATE_RETURN(pVM, VMSTATE_CREATING, VERR_VM_INVALID_VM_STATE);
    40634063
     
    43754375 * @param   cbBinary            The size of the binary data pvBinary points to.
    43764376 *                              This must be less or equal to @a cb.
    4377  * @param   fFlags              Mask of flags. PGMPHYS_ROM_FLAGS_SHADOWED
    4378  *                              and/or PGMPHYS_ROM_FLAGS_PERMANENT_BINARY.
     4377 * @param   fFlags              Mask of flags, PGMPHYS_ROM_FLAGS_XXX.
    43794378 * @param   pszDesc             Pointer to description string. This must not be freed.
    43804379 *
  • trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp

    r80673 r81454  
    332332        {
    333333            for (PPGMROMRANGE pRom = pVM->pgm.s.pRomRangesR3; pRom; pRom = pRom->pNextR3)
    334                 AssertLogRelMsg(pRom->idSavedState != UINT8_MAX,
    335                                 ("The \"%s\" ROM was not found in the saved state. Probably due to some misconfiguration\n",
    336                                  pRom->pszDesc));
     334                if (pRom->idSavedState != UINT8_MAX)
     335                { /* likely */ }
     336                else if (pRom->fFlags & PGMPHYS_ROM_FLAGS_MAYBE_MISSING_FROM_STATE)
     337                    LogRel(("PGM: The '%s' ROM was not found in the saved state, but it is marked as maybe-missing, so that's probably okay.\n",
     338                            pRom->pszDesc));
     339                else
     340                    AssertLogRelMsg(pRom->idSavedState != UINT8_MAX,
     341                                    ("The '%s' ROM was not found in the saved state. Probably due to some misconfiguration\n",
     342                                     pRom->pszDesc));
    337343            return VINF_SUCCESS;        /* the end */
    338344        }
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