Changeset 40359 in vbox for trunk/src/VBox/Additions/common/VBoxGuestLib
- Timestamp:
- Mar 5, 2012 3:10:10 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/HGCMInternal.cpp
r39693 r40359 260 260 if (fIsUser) 261 261 return VERR_INVALID_PARAMETER; 262 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 262 /* always perform it as !VBGLR0_CAN_USE_PHYS_PAGE_LIST() since otherwise 263 * we end up creating a RTR0MEMOBJ and doing page lock again, which leads to undefined behavior and possible BSOD on Win */ 264 //if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 263 265 { 264 266 cb = pSrcParm->u.Pointer.size; … … 537 539 case VMMDevHGCMParmType_LinAddr_Locked_Out: 538 540 case VMMDevHGCMParmType_LinAddr_Locked: 539 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 541 /* always perform it as !VBGLR0_CAN_USE_PHYS_PAGE_LIST() since otherwise 542 * we end up creating a RTR0MEMOBJ and doing page lock again, which leads to undefined behavior and possible BSOD on Win */ 543 // if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 540 544 { 541 545 *pDstParm = *pSrcParm; … … 801 805 case VMMDevHGCMParmType_LinAddr_Locked_Out: 802 806 case VMMDevHGCMParmType_LinAddr_Locked: 803 if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 807 /* always perform it as !VBGLR0_CAN_USE_PHYS_PAGE_LIST() since otherwise 808 * we end up creating a RTR0MEMOBJ and doing page lock again, which leads to undefined behavior and possible BSOD on Win */ 809 // if (!VBGLR0_CAN_USE_PHYS_PAGE_LIST()) 804 810 { 805 811 pDstParm->u.Pointer.size = pSrcParm->u.Pointer.size;
Note:
See TracChangeset
for help on using the changeset viewer.