Changeset 29590 in vbox for trunk/src/VBox
- Timestamp:
- May 18, 2010 7:02:17 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r29571 r29590 289 289 DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE 290 290 DevicesR3_DEFS += VBOX_HGCM_HOST_CODE \ 291 VBOX_WITH_HGCM \ 292 $(if $(VBOX_WITH_PAGE_SHARING),VBOX_WITH_PAGE_SHARING,) 291 VBOX_WITH_HGCM 293 292 DevicesR3_DEFS.linux += _GNU_SOURCE 294 293 DevicesR3_DEFS.l4 += _GNU_SOURCE -
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r29425 r29590 1816 1816 else 1817 1817 { 1818 pReqStatus->fEnabled = pThis->fPageSharingEnabled; 1818 pReqStatus->fEnabled = false; 1819 pThis->pDrv->pfnIsPageFusionEnabled(pThis->pDrv, &pReqStatus->fEnabled); 1819 1820 pRequestHeader->rc = VINF_SUCCESS; 1820 1821 } … … 2196 2197 } 2197 2198 2198 PDMCritSectLeave(&pThis->CritSect);2199 return VINF_SUCCESS;2200 }2201 2202 static DECLCALLBACK(int) vmmdevEnablePageSharing(PPDMIVMMDEVPORT pInterface, bool fEnabled)2203 {2204 VMMDevState *pThis = IVMMDEVPORT_2_VMMDEVSTATE(pInterface);2205 PDMCritSectEnter(&pThis->CritSect, VERR_SEM_BUSY);2206 2207 Log(("vmmdevEnablePageSharing: old=%d. new=%d\n", pThis->fPageSharingEnabled, fEnabled));2208 pThis->fPageSharingEnabled = fEnabled;2209 2199 PDMCritSectLeave(&pThis->CritSect); 2210 2200 return VINF_SUCCESS; … … 2761 2751 pThis->IPort.pfnRequestSeamlessChange = vmmdevRequestSeamlessChange; 2762 2752 pThis->IPort.pfnSetMemoryBalloon = vmmdevSetMemoryBalloon; 2763 pThis->IPort.pfnEnablePageSharing = vmmdevEnablePageSharing;2764 2753 pThis->IPort.pfnSetStatisticsInterval = vmmdevSetStatisticsInterval; 2765 2754 pThis->IPort.pfnVRDPChange = vmmdevVRDPChange; -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r29307 r29590 171 171 bool fLastSeamlessEnabled, fSeamlessEnabled; 172 172 173 /* shared paging change request. */174 bool fPageSharingEnabled;175 176 173 bool fVRDPEnabled; 177 174 uint32_t u32VRDPExperienceLevel;
Note:
See TracChangeset
for help on using the changeset viewer.