Changeset 27054 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2010 7:05:43 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58369
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r27023 r27054 276 276 } 277 277 278 278 279 /** 279 280 * Inflate the balloon by one chunk represented by an R0 memory object. … … 304 305 pReq->cPages = VMMDEV_MEMORY_BALLOON_CHUNK_PAGES; 305 306 306 return VbglGRPerform(&pReq->header); 307 } 307 rc = VbglGRPerform(&pReq->header); 308 if (RT_FAILURE(rc)) 309 LogRel(("vboxGuestBalloonInflate: VbglGRPerform failed. rc=%d\n", rc)); 310 return rc; 311 } 312 308 313 309 314 /** … … 332 337 rc = VbglGRPerform(&pReq->header); 333 338 if (RT_FAILURE(rc)) 339 { 340 LogRel(("vboxGuestBalloonDeflate: VbglGRPerform failed. rc=%d\n", rc)); 334 341 return rc; 342 } 335 343 336 344 rc = RTR0MemObjFree(*pMemObj, true); … … 395 403 /* not supported -- fall back to the R3-allocated memory */ 396 404 pDevExt->MemBalloon.fUseKernelAPI = false; 405 Log(("VBoxGuestSetBalloonSizeKernel: PhysNC allocs not supported, falling back to R3 allocs.\n")); 397 406 break; 398 407 } … … 590 599 pDevExt->MemBalloon.cChunks = 0; 591 600 pDevExt->MemBalloon.cMaxChunks = 0; 592 #if def RT_OS_LINUX601 #if defined(RT_OS_LINUX) || defined(RT_OS_SOLARIS) 593 602 pDevExt->MemBalloon.fUseKernelAPI = true; 594 603 #else … … 1835 1844 if (RT_FAILURE(rc)) 1836 1845 { 1846 LogRel(("VBoxGuestCommonIOCtl: QUERYMEMORYBALLOON: VbglGRPerform failed. rc=%d\n", rc)); 1837 1847 VbglGRFree(&pReq->header); 1838 1848 return rc; … … 1858 1868 *pcbDataReturned = sizeof(VBoxGuestCheckBalloonInfo); 1859 1869 1870 Log(("VBoxGuestCommonIOCtl: QUERYMEMORYBALLOON returns %d\n", rc)); 1860 1871 return rc; 1861 1872 }
Note:
See TracChangeset
for help on using the changeset viewer.