Changeset 30650 in vbox
- Timestamp:
- Jul 6, 2010 9:30:16 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/err.h
r30646 r30650 479 479 /** Inconsistent local and global registration records. */ 480 480 #define VERR_PGM_SHARED_MODULE_REGISTRATION_INCONSISTENCY (-1650) 481 /** No registered modules. */482 #define VINF_PGM_SHARED_MODULE_ NONE_REGISTERED(1651)481 /** First shared module check. */ 482 #define VINF_PGM_SHARED_MODULE_FIRST_CHECK (1651) 483 483 /** @} */ 484 484 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServicePageSharing.cpp
r30648 r30650 483 483 } 484 484 485 bool fFirstCheck = (pKnownModuleTree == NULL); 486 485 487 /* Delete leftover modules in the old tree. */ 486 488 RTAvlPVDestroy(&pKnownModuleTree, VBoxServicePageSharingEmptyTreeCallback, NULL); … … 488 490 /* Check all registered modules. */ 489 491 int rc = VbglR3CheckSharedModules(); 490 if (rc == VINF_PGM_SHARED_MODULE_NONE_REGISTERED) 492 if ( rc == VINF_PGM_SHARED_MODULE_FIRST_CHECK 493 && !fFirstCheck) 491 494 { 492 495 bool fUnregister = false; -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r30646 r30650 4169 4169 4170 4170 Log(("GMMR0CheckSharedModules\n")); 4171 if (pGVM->gmm.s.pSharedModuleTree != NULL) 4172 { 4173 Info.pGVM = pGVM; 4174 Info.idCpu = pVCpu->idCpu; 4175 4176 RTAvlGCPtrDoWithAll(&pGVM->gmm.s.pSharedModuleTree, true /* fFromLeft */, gmmR0CheckSharedModule, &Info); 4171 Info.pGVM = pGVM; 4172 Info.idCpu = pVCpu->idCpu; 4173 4174 RTAvlGCPtrDoWithAll(&pGVM->gmm.s.pSharedModuleTree, true /* fFromLeft */, gmmR0CheckSharedModule, &Info); 4175 4176 if (pGVM->gmm.s.fFirstCheckSharedModule) 4177 { 4178 /* To make sure the guest additions can detect a VM restore as that needs a reregistration of all modules. */ 4179 rc = VINF_PGM_SHARED_MODULE_FIRST_CHECK; 4180 pGVM->gmm.s.fFirstCheckSharedModule = false; 4181 } 4182 else 4177 4183 rc = VINF_SUCCESS; 4178 }4179 else4180 rc = VINF_PGM_SHARED_MODULE_NONE_REGISTERED;4181 4184 4182 4185 Log(("GMMR0CheckSharedModules done!\n")); -
trunk/src/VBox/VMM/VMMR0/GMMR0Internal.h
r30027 r30650 107 107 bool fSharedPagingEnabled; 108 108 109 /** First GMMR0CheckSharedModules call? */ 110 bool fFirstCheckSharedModule; 111 109 112 /** Whether the VM is allowed to allocate memory or not. 110 113 * This is used when the reservation update request fails or when the VM has
Note:
See TracChangeset
for help on using the changeset viewer.