VirtualBox

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


Ignore:
Timestamp:
Aug 11, 2010 11:32:12 PM (14 years ago)
Author:
vboxsync
Message:

IOMALLMMIO.cpp: Don't waste time check uErrorCode to figure out whether to return VINF_IOM_HC_MMIO_WRITE or VINF_IOM_HC_MMIO_READ. It might be misleading in the EPT + MMIO optimization case anyway.

File:
1 edited

Legend:

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

    r31458 r31591  
    10411041#ifndef IN_RING3
    10421042    if (rc == VERR_SEM_BUSY)
    1043         return (uErrorCode & X86_TRAP_PF_RW) ? VINF_IOM_HC_MMIO_WRITE : VINF_IOM_HC_MMIO_READ;
     1043        return VINF_IOM_HC_MMIO_READ_WRITE;
    10441044#endif
    10451045    AssertRC(rc);
     
    10721072        STAM_COUNTER_INC(&pVM->iom.s.StatRZMMIOFailures);
    10731073        iomUnlock(pVM);
    1074         return (uErrorCode & X86_TRAP_PF_RW) ? VINF_IOM_HC_MMIO_WRITE : VINF_IOM_HC_MMIO_READ;
     1074        return VINF_IOM_HC_MMIO_READ_WRITE;
    10751075# endif
    10761076    }
     
    12051205        default:
    12061206            STAM_COUNTER_INC(&pVM->iom.s.StatRZInstOther);
    1207             rc = (uErrorCode & X86_TRAP_PF_RW) ? VINF_IOM_HC_MMIO_WRITE : VINF_IOM_HC_MMIO_READ;
     1207            rc = VINF_IOM_HC_MMIO_READ_WRITE;
    12081208            break;
    12091209    }
     
    12751275#ifndef IN_RING3
    12761276    if (rc2 == VERR_SEM_BUSY)
    1277         return (uErrorCode & X86_TRAP_PF_RW) ? VINF_IOM_HC_MMIO_WRITE : VINF_IOM_HC_MMIO_READ;
     1277        return VINF_IOM_HC_MMIO_READ_WRITE;
    12781278#endif
    12791279    VBOXSTRICTRC rcStrict = iomMMIOHandler(pVM, uErrorCode, pCtxCore, GCPhysFault, iomMMIOGetRange(&pVM->iom.s, GCPhysFault));
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