VirtualBox

Changeset 71720 in vbox


Ignore:
Timestamp:
Apr 6, 2018 6:51:44 PM (7 years ago)
Author:
vboxsync
Message:

PATM: Don't try pass stuff to patmRCVirtPagePfHandle that's not needed, as it seems the page address (pPage) isn't a hypervisor address, but guest one.

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

Legend:

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

    r70948 r71720  
    847847                                                     pPage,
    848848                                                     pPage + (PAGE_SIZE - 1) /* inclusive! */,
    849                                                      (void *)(uintptr_t)pPage, pPage, NULL /*pszDesc*/);
     849                                                     (void *)(uintptr_t)pPage, NIL_RTRCPTR /*pvUserRC*/, NULL /*pszDesc*/);
    850850                    Assert(RT_SUCCESS(rc) || rc == VERR_PGM_HANDLER_VIRTUAL_CONFLICT);
    851851                }
     
    929929                                                     pPage,
    930930                                                     pPage + (PAGE_SIZE - 1) /* inclusive! */,
    931                                                      (void *)(uintptr_t)pPage, pPage, NULL /*pszDesc*/);
     931                                                     (void *)(uintptr_t)pPage, NIL_RTRCPTR /*pvUserRC*/, NULL /*pszDesc*/);
    932932                    Assert(RT_SUCCESS(rc) || rc == VERR_PGM_HANDLER_VIRTUAL_CONFLICT);
    933933                }
  • trunk/src/VBox/VMM/VMMR3/PATMSSM.cpp

    r69111 r71720  
    15031503                                                 pPage,
    15041504                                                 pPage + (PAGE_SIZE - 1) /* inclusive! */,
    1505                                                  (void *)(uintptr_t)pPage, pPage, NULL /*pszDesc*/);
     1505                                                 (void *)(uintptr_t)pPage, NIL_RTRCPTR /*pvUserRC*/, NULL /*pszDesc*/);
    15061506                Assert(RT_SUCCESS(rc) || rc == VERR_PGM_HANDLER_VIRTUAL_CONFLICT);
    15071507            }
  • trunk/src/VBox/VMM/VMMRC/PATMRC.cpp

    r69111 r71720  
    4747 *      PATM all access handler callback.}
    4848 *
    49  * @remarks The @a pvUser argument is the base address of the page being
    50  *          monitored.
     49 * @remarks pvUser is NULL.
    5150 */
    5251DECLEXPORT(VBOXSTRICTRC) patmRCVirtPagePfHandler(PVM pVM, PVMCPU pVCpu, RTGCUINT uErrorCode, PCPUMCTXCORE pCtxCore,
     
    5453{
    5554    NOREF(pVCpu); NOREF(uErrorCode); NOREF(pCtxCore); NOREF(pvFault); NOREF(pvRange); NOREF(offRange); RT_NOREF_PV(pvUser);
    56 
    57     Assert(pvUser);
    58     Assert(!((uintptr_t)pvUser & PAGE_OFFSET_MASK));
    59     Assert(((uintptr_t)pvUser + (pvFault & PAGE_OFFSET_MASK)) == pvRange + offRange);
    6055
    6156    pVM->patm.s.pvFaultMonitor = (RTRCPTR)(pvRange + offRange);
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