VirtualBox

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


Ignore:
Timestamp:
Feb 6, 2013 1:56:21 PM (12 years ago)
Author:
vboxsync
Message:

IOM: Adding IOMMMIO_FLAGS_WRITE_ONLY_DWORD, fixing parameter validation.

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

Legend:

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

    r44528 r44564  
    118118#endif
    119119
     120    /*
     121     * Check if we should ignore the write.
     122     */
     123    if (pRange->fFlags & IOMMMIO_FLAGS_WRITE_ONLY_DWORD)
     124    {
     125        Assert(cbValue != 4 || (GCPhys & 3));
     126        return VINF_SUCCESS;
     127    }
    120128
    121129    /*
     
    151159                case VINF_IOM_R3_MMIO_WRITE:
    152160                    /** @todo What if we've split a transfer and already read
    153                      * something?  Since reads can have sideeffects we could be
    154                      * kind of screwed here... */
     161                     * something?  Since writes generally have sideeffects we
     162                     * could be kind of screwed here... */
    155163                    LogFlow(("iomMMIODoComplicatedWrite: GCPhys=%RGp GCPhysStart=%RGp cbValue=%u rc=%Rrc [read]\n", GCPhys, GCPhysStart, cbValue, rc2));
    156164                    return rc2;
  • trunk/src/VBox/VMM/VMMR3/IOM.cpp

    r44528 r44564  
    14181418                    VERR_IOM_INVALID_MMIO_RANGE);
    14191419    AssertMsgReturn(   !(fFlags & ~IOMMMIO_FLAGS_VALID_MASK)
    1420                     || (fFlags & IOMMMIO_FLAGS_READ_MODE) == IOMMMIO_FLAGS_READ_MODE
    1421                     || (fFlags & IOMMMIO_FLAGS_WRITE_MODE) > IOMMMIO_FLAGS_WRITE_DWORD_QWORD_READ_MISSING,
     1420                    && (fFlags & IOMMMIO_FLAGS_READ_MODE)  <= IOMMMIO_FLAGS_READ_DWORD_QWORD
     1421                    && (fFlags & IOMMMIO_FLAGS_WRITE_MODE) <= IOMMMIO_FLAGS_WRITE_ONLY_DWORD,
    14221422                    ("%#x\n", fFlags),
    14231423                    VERR_INVALID_PARAMETER);
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