VirtualBox

Changeset 40054 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Feb 9, 2012 3:37:11 PM (13 years ago)
Author:
vboxsync
Message:

VMM,VMMDev: Page sharing cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp

    r38411 r40054  
    242242    }
    243243    VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule %s %s base=%p size=%x cregions=%d\n", pModule->Info.szModule, pModule->szFileVersion, pModule->Info.modBaseAddr, pModule->Info.modBaseSize, idxRegion);
    244 #ifdef RT_ARCH_X86
    245     int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR32)pModule->Info.modBaseAddr,
     244    int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (uintptr_t)pModule->Info.modBaseAddr,
    246245                                        pModule->Info.modBaseSize, idxRegion, aRegions);
    247 #else
    248     int rc = VbglR3RegisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr,
    249                                         pModule->Info.modBaseSize, idxRegion, aRegions);
    250 #endif
    251 
    252 //    AssertRC(rc);
    253246    if (RT_FAILURE(rc))
    254         VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule failed with %d\n", rc);
     247        VBoxServiceVerbose(3, "VBoxServicePageSharingRegisterModule: VbglR3RegisterSharedModule failed with %Rrc\n", rc);
    255248
    256249end:
     
    293286    do
    294287    {
    295         /** todo when changing this make sure VBoxService.exe is excluded! */
     288        /** @todo when changing this make sure VBoxService.exe is excluded! */
    296289        char *pszDot = strrchr(ModuleInfo.szModule, '.');
    297290        if (    pszDot
     
    505498
    506499    /* Dereference module in the hypervisor. */
    507     if (    !pfUnregister
    508         ||  *pfUnregister == true)
    509     {
    510     #ifdef RT_ARCH_X86
    511         int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR32)pModule->Info.modBaseAddr, pModule->Info.modBaseSize);
    512     #else
    513         int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion, (RTGCPTR64)pModule->Info.modBaseAddr, pModule->Info.modBaseSize);
    514     #endif
     500    if (   !pfUnregister
     501        || *pfUnregister)
     502    {
     503        int rc = VbglR3UnregisterSharedModule(pModule->Info.szModule, pModule->szFileVersion,
     504                                              (uintptr_t)pModule->Info.modBaseAddr, pModule->Info.modBaseSize);
    515505        AssertRC(rc);
    516506    }
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