VirtualBox

Changeset 29590 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 18, 2010 7:02:17 AM (15 years ago)
Author:
vboxsync
Message:

Connect page fusion part 2

Location:
trunk/src/VBox/Devices
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r29571 r29590  
    289289DevicesR3_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
    290290DevicesR3_DEFS         += VBOX_HGCM_HOST_CODE \
    291                           VBOX_WITH_HGCM \
    292                           $(if $(VBOX_WITH_PAGE_SHARING),VBOX_WITH_PAGE_SHARING,)
     291                          VBOX_WITH_HGCM
    293292DevicesR3_DEFS.linux   += _GNU_SOURCE
    294293DevicesR3_DEFS.l4      += _GNU_SOURCE
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r29425 r29590  
    18161816            else
    18171817            {
    1818                 pReqStatus->fEnabled = pThis->fPageSharingEnabled;
     1818                pReqStatus->fEnabled = false;
     1819                pThis->pDrv->pfnIsPageFusionEnabled(pThis->pDrv, &pReqStatus->fEnabled);
    18191820                pRequestHeader->rc = VINF_SUCCESS;
    18201821            }
     
    21962197    }
    21972198
    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;
    22092199    PDMCritSectLeave(&pThis->CritSect);
    22102200    return VINF_SUCCESS;
     
    27612751    pThis->IPort.pfnRequestSeamlessChange  = vmmdevRequestSeamlessChange;
    27622752    pThis->IPort.pfnSetMemoryBalloon       = vmmdevSetMemoryBalloon;
    2763     pThis->IPort.pfnEnablePageSharing      = vmmdevEnablePageSharing;
    27642753    pThis->IPort.pfnSetStatisticsInterval  = vmmdevSetStatisticsInterval;
    27652754    pThis->IPort.pfnVRDPChange             = vmmdevVRDPChange;
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r29307 r29590  
    171171    bool fLastSeamlessEnabled, fSeamlessEnabled;
    172172
    173     /* shared paging change request. */
    174     bool fPageSharingEnabled;
    175 
    176173    bool fVRDPEnabled;
    177174    uint32_t u32VRDPExperienceLevel;
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