VirtualBox

Changeset 91850 in vbox


Ignore:
Timestamp:
Oct 19, 2021 11:27:43 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147652
Message:

VMM/NEM,PGM: Build fixes. bugref:10122

File:
1 edited

Legend:

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

    r91848 r91850  
    1616 */
    1717
     18#undef VBOX_WITH_NATIVE_NEM
    1819
    1920/*********************************************************************************************************************************
     
    11961197        return rc;
    11971198    }
    1198 #endif /* VBOX_WITH_PGM_NEM_MODE */
     1199#else  /* !VBOX_WITH_PGM_NEM_MODE */
     1200    RT_NOREF(pvMmio2);
     1201#endif /* !VBOX_WITH_PGM_NEM_MODE */
    11991202
    12001203    /*
     
    39113914
    39123915    PGM_UNLOCK(pVM);
    3913     return rc;
     3916    return rcRet;
    39143917}
    39153918
     
    44164419            }
    44174420
     4421#ifdef VBOX_WITH_NATIVE_NEM
    44184422            /* Set the NEM state of the pages if needed. */
    44194423            if (u2NemState != UINT8_MAX)
    44204424                pgmPhysSetNemStateForPages(&pRamNew->aPages[idxFirstRamPage], cPages, u2NemState);
     4425#endif
    44214426
    44224427            /* Flush physical page map TLB. */
     
    45284533                            GMMR3AllocatePagesCleanup(pReq);
    45294534
     4535#ifdef VBOX_WITH_NATIVE_NEM
    45304536                        /*
    45314537                         * Notify NEM again.
     
    45374543                            pgmPhysSetNemStateForPages(&pRamNew->aPages[idxFirstRamPage], cPages, u2NemState);
    45384544                        if (RT_SUCCESS(rc))
     4545#endif
    45394546                            return rc;
    45404547
     
    45424549                         * bail out
    45434550                         */
     4551#ifdef VBOX_WITH_NATIVE_NEM
    45444552                        /* unlink */
    45454553                        if (pRomPrev)
     
    45564564                        if (fFlags & PGMPHYS_ROM_FLAGS_SHADOWED)
    45574565                        {
    4558 #ifdef VBOX_WITH_PGM_NEM_MODE
     4566# ifdef VBOX_WITH_PGM_NEM_MODE
    45594567                            if (pVM->pgm.s.fNemMode)
    45604568                                pVM->pgm.s.cPrivatePages -= cPages;
    45614569                            else
    4562 #endif
     4570# endif
    45634571                                pVM->pgm.s.cZeroPages -= cPages;
    45644572                            pVM->pgm.s.cAllPages -= cPages;
    45654573                        }
    4566 
     4574#endif
    45674575                    }
    45684576                    else
     
    48904898                    if (rc2 != VINF_SUCCESS && (rc == VINF_SUCCESS || RT_FAILURE(rc2)))
    48914899                        rc = rc2;
     4900#ifdef VBOX_WITH_NATIVE_NEM
    48924901                    uint8_t u2State = PGM_PAGE_GET_NEM_STATE(pRamPage);
     4902#endif
    48934903
    48944904                    PPGMPAGE pOld = PGMROMPROT_IS_ROM(pRomPage->enmProt) ? &pRomPage->Virgin : &pRomPage->Shadow;
     
    57275737        PGM_PAGE_SET_NEM_STATE(pPage, u2State);
    57285738    }
     5739#else
     5740    RT_NOREF(enmNewType);
    57295741#endif
    57305742
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