VirtualBox

Changeset 12999 in vbox


Ignore:
Timestamp:
Oct 6, 2008 9:40:43 AM (16 years ago)
Author:
vboxsync
Message:

Same applies to return code checks for PGMShwGetEPTPDPtr.

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

Legend:

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

    r12998 r12999  
    10151015 * @param   ppPD        Receives address of page directory
    10161016 */
    1017 VMMDECL(int)    PGMShwGetEPTPDPtr(PVM pVM, RTGCUINTPTR64 GCPtr, PEPTPDPT *ppPdpt, PEPTPD *ppPD)
     1017VMMDECL(int) PGMShwGetEPTPDPtr(PVM pVM, RTGCUINTPTR64 GCPtr, PEPTPDPT *ppPdpt, PEPTPD *ppPD)
    10181018{
    10191019    PPGM           pPGM   = &pVM->pgm.s;
     
    10381038        if (rc == VERR_PGM_POOL_FLUSHED)
    10391039        {
     1040            Log(("PGMShwSyncEPTPDPtr: PGM pool flushed (1) -> signal sync cr3\n"));
    10401041            Assert(pVM->pgm.s.fSyncFlags & PGM_SYNC_CLEAR_PGM_POOL);
    10411042            VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
     
    10691070        if (rc == VERR_PGM_POOL_FLUSHED)
    10701071        {
     1072            Log(("PGMShwSyncEPTPDPtr: PGM pool flushed (2) -> signal sync cr3\n"));
    10711073            Assert(pVM->pgm.s.fSyncFlags & PGM_SYNC_CLEAR_PGM_POOL);
    10721074            VM_FF_SET(pVM, VM_FF_PGM_SYNC_CR3);
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r12997 r12999  
    169169
    170170    rc = PGMShwGetEPTPDPtr(pVM, (RTGCUINTPTR)pvFault, NULL, &pPDDst);
    171     AssertRCReturn(rc, rc);
     171    AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    172172    Assert(pPDDst);
    173173# endif
     
    18531853
    18541854    int rc = PGMShwGetEPTPDPtr(pVM, GCPtrPage, NULL, &pPDDst);
    1855     AssertRCReturn(rc, rc);
     1855    AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    18561856    Assert(pPDDst);
    18571857    PdeDst = pPDDst->a[iPDDst];
     
    27022702
    27032703    rc = PGMShwGetEPTPDPtr(pVM, GCPtrPage, &pPdptDst, &pPDDst);
    2704     AssertRCReturn(rc, rc);
     2704    AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    27052705    Assert(pPDDst);
    27062706
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