VirtualBox

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


Ignore:
Timestamp:
Oct 19, 2021 11:24:00 PM (3 years ago)
Author:
vboxsync
Message:

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

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r91848 r91849  
    555555static void pgmHandlerPhysicalDeregisterNotifyNEM(PVMCC pVM, PPGMPHYSHANDLER pCur)
    556556{
     557#ifdef VBOX_WITH_NATIVE_NEM
    557558    PPGMPHYSHANDLERTYPEINT  pCurType    = PGMPHYSHANDLER_GET_TYPE(pVM, pCur);
    558559    RTGCPHYS                GCPhysStart = pCur->Core.Key;
     
    616617    if (u2State != UINT8_MAX && pRam)
    617618        pgmPhysSetNemStateForPages(&pRam->aPages[(GCPhysStart - pRam->GCPhys) >> PAGE_SHIFT], cb >> PAGE_SHIFT, u2State);
     619#else
     620    RT_NOREF(pVM, pCur);
     621#endif
    618622}
    619623
     
    703707           || PGM_PAGE_GET_TYPE(pPage) == PGMPAGETYPE_SPECIAL_ALIAS_MMIO);
    704708    Assert(PGM_PAGE_GET_HNDL_PHYS_STATE(pPage) == PGM_PAGE_HNDL_PHYS_STATE_DISABLED);
     709#ifdef VBOX_WITH_NATIVE_NEM
    705710    RTHCPHYS const HCPhysPrev = PGM_PAGE_GET_HCPHYS(pPage);
     711#endif
    706712
    707713    /*
     
    752758        PGM_PAGE_SET_NEM_STATE(pPage, u2State);
    753759    }
     760#else
     761    RT_NOREF(pRam);
    754762#endif
    755763}
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r91848 r91849  
    10891089        PGM_PAGE_SET_NEM_STATE(pPage, u2State);
    10901090    }
     1091#else
     1092    RT_NOREF(GCPhys);
    10911093#endif
    10921094}
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