Changeset 32272 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
- Timestamp:
- Sep 7, 2010 10:09:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r32266 r32272 280 280 } 281 281 282 /* Protect this memory from being accessed. Doesn't work on every platform and probably283 * doesn't work for R3-provided memory, therefore ignore the return value. Unprotect284 * done when object is freed. */285 RTR0MemObjProtect(*pMemObj, 0, VMMDEV_MEMORY_BALLOON_CHUNK_SIZE, RTMEM_PROT_NONE);286 287 282 pReq->fInflate = true; 288 283 pReq->header.size = cbChangeMemBalloonReq; … … 327 322 return rc; 328 323 } 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... */333 324 334 325 rc = RTR0MemObjFree(*pMemObj, true);
Note:
See TracChangeset
for help on using the changeset viewer.