VirtualBox

Ignore:
Timestamp:
Sep 7, 2010 10:09:20 AM (14 years ago)
Author:
vboxsync
Message:

VBoxGuest.cpp: Drop the RTR0MemObjProtect call as it doesn't make sense on *any* platform.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r32266 r32272  
    280280    }
    281281
    282     /* Protect this memory from being accessed. Doesn't work on every platform and probably
    283      * doesn't work for R3-provided memory, therefore ignore the return value. Unprotect
    284      * done when object is freed. */
    285     RTR0MemObjProtect(*pMemObj, 0, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE, RTMEM_PROT_NONE);
    286 
    287282    pReq->fInflate = true;
    288283    pReq->header.size = cbChangeMemBalloonReq;
     
    327322        return rc;
    328323    }
    329 
    330     /* undo previous protec call, ignore rc for reasons stated there. */
    331     RTR0MemObjProtect(*pMemObj, 0, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE, RTMEM_PROT_READ | RTMEM_PROT_WRITE);
    332     /*RTR0MemObjProtect(*pMemObj, 0, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE, RTMEM_PROT_READ | RTMEM_PROT_WRITE | RTMEM_PROT_EXEC); - probably not safe... */
    333324
    334325    rc = RTR0MemObjFree(*pMemObj, true);
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