Changeset 20768 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Jun 22, 2009 12:15:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r20674 r20768 1425 1425 rc = pPhys->CTX_SUFF(pfnHandler)(pVM, GCPhys, (void *)pvSrc, pvBuf, cb, PGMACCESSTYPE_READ, pPhys->CTX_SUFF(pvUser)); 1426 1426 pgmLock(pVM); 1427 STAM_PROFILE_STOP(&pPhys->Stat, h); 1427 # ifdef VBOX_WITH_STATISTICS 1428 pPhys = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys); 1429 if (pPhys) 1430 STAM_PROFILE_STOP(&pPhys->Stat, h); 1431 # else 1432 pPhys = NULL; /* might not be valid anymore. */ 1433 # endif 1428 1434 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp\n", rc, GCPhys)); 1429 1435 #else … … 1452 1458 { 1453 1459 if (!pPhys) 1454 Log5(("pgmPhys WriteHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] virt %s\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc) ));1460 Log5(("pgmPhysReadHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] virt %s\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc) )); 1455 1461 else 1456 Log(("pgmPhys WriteHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] phys/virt %s/%s\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc), R3STRING(pPhys->pszDesc) ));1462 Log(("pgmPhysReadHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] phys/virt %s/%s\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc), R3STRING(pPhys->pszDesc) )); 1457 1463 RTGCUINTPTR GCPtr = ((RTGCUINTPTR)pVirt->Core.Key & PAGE_BASE_GC_MASK) 1458 1464 + (iPage << PAGE_SHIFT) … … 1467 1473 } 1468 1474 else 1469 Log5(("pgmPhys WriteHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] virt %s [no handler]\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc) ));1475 Log5(("pgmPhysReadHandler: GCPhys=%RGp cb=%#x pPage=%R[pgmpage] virt %s [no handler]\n", GCPhys, cb, pPage, R3STRING(pVirt->pszDesc) )); 1470 1476 #else 1471 1477 /* In R0 and RC the callbacks cannot handle this context, so we'll fail. */ … … 1658 1664 rc = pCur->CTX_SUFF(pfnHandler)(pVM, GCPhys, pvDst, (void *)pvBuf, cbRange, PGMACCESSTYPE_WRITE, pCur->CTX_SUFF(pvUser)); 1659 1665 pgmLock(pVM); 1660 STAM_PROFILE_STOP(&pCur->Stat, h); 1666 # ifdef VBOX_WITH_STATISTICS 1667 pCur = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys); 1668 if (pCur) 1669 STAM_PROFILE_STOP(&pCur->Stat, h); 1670 # else 1671 pCur = NULL; /* might not be valid anymore. */ 1672 # endif 1661 1673 if (rc == VINF_PGM_HANDLER_DO_DEFAULT) 1662 1674 memcpy(pvDst, pvBuf, cbRange); 1663 1675 else 1664 AssertLogRelMsg(rc == VINF_SUCCESS , ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, pCur->pszDesc));1676 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, (pCur) ? pCur->pszDesc : "")); 1665 1677 } 1666 1678 else … … 1861 1873 rc = pPhys->CTX_SUFF(pfnHandler)(pVM, GCPhys, pvDst, (void *)pvBuf, cbRange, PGMACCESSTYPE_WRITE, pPhys->CTX_SUFF(pvUser)); 1862 1874 pgmLock(pVM); 1863 STAM_PROFILE_STOP(&pPhys->Stat, h); 1864 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, pPhys->pszDesc)); 1865 pPhys = NULL; 1875 # ifdef VBOX_WITH_STATISTICS 1876 pPhys = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys); 1877 if (pPhys) 1878 STAM_PROFILE_STOP(&pPhys->Stat, h); 1879 # else 1880 pPhys = NULL; /* might not be valid anymore. */ 1881 # endif 1882 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, (pPhys) ? pPhys->pszDesc : "")); 1866 1883 #else 1867 1884 /* In R0 and RC the callbacks cannot handle this context, so we'll fail. */ … … 1922 1939 rc = pPhys->CTX_SUFF(pfnHandler)(pVM, GCPhys, pvDst, (void *)pvBuf, cbRange, PGMACCESSTYPE_WRITE, pPhys->CTX_SUFF(pvUser)); 1923 1940 pgmLock(pVM); 1924 STAM_PROFILE_STOP(&pPhys->Stat, h); 1925 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, pPhys->pszDesc)); 1941 # ifdef VBOX_WITH_STATISTICS 1942 pPhys = (PPGMPHYSHANDLER)RTAvlroGCPhysRangeGet(&pVM->pgm.s.CTX_SUFF(pTrees)->PhysHandlers, GCPhys); 1943 if (pPhys) 1944 STAM_PROFILE_STOP(&pPhys->Stat, h); 1945 # else 1946 pPhys = NULL; /* might not be valid anymore. */ 1947 # endif 1948 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VINF_PGM_HANDLER_DO_DEFAULT, ("rc=%Rrc GCPhys=%RGp pPage=%R[pgmpage] %s\n", rc, GCPhys, pPage, (pPhys) ? pPhys->pszDesc : "")); 1926 1949 if (pVirt->pfnHandlerR3) 1927 1950 {
Note:
See TracChangeset
for help on using the changeset viewer.