VirtualBox

Changeset 73376 in vbox for trunk/src


Ignore:
Timestamp:
Jul 27, 2018 8:00:39 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123994
Message:

PGM/NEM: catch make-writable changes during memory exits and avoid the emulation when a page was allocated. bugref:9044

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/NEMAllNativeTemplate-win.cpp.h

    r73327 r73376  
    17791779            if (pInfo->fNemProt & NEM_PAGE_PROT_WRITE)
    17801780            {
    1781                 Log4(("nemHCWinHandleMemoryAccessPageCheckerCallback: %RGp - #3\n", GCPhys));
     1781                if (pInfo->u2OldNemState == NEM_WIN_PAGE_STATE_WRITABLE)
     1782                    Log4(("nemHCWinHandleMemoryAccessPageCheckerCallback: %RGp - #3a\n", GCPhys));
     1783                else
     1784                {
     1785                    pState->fCanResume = true;
     1786                    Log4(("nemHCWinHandleMemoryAccessPageCheckerCallback: %RGp - #3b (%s -> %s)\n",
     1787                          GCPhys, g_apszPageStates[pInfo->u2OldNemState], g_apszPageStates[u2State]));
     1788                }
    17821789                return VINF_SUCCESS;
    17831790            }
  • trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp

    r73203 r73376  
    47684768    {
    47694769        /* Try make it writable if requested. */
     4770        pInfo->u2OldNemState = PGM_PAGE_GET_NEM_STATE(pPage);
    47704771        if (fMakeWritable)
    47714772            switch (PGM_PAGE_GET_STATE(pPage))
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