Changeset 18144 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp
- Timestamp:
- Mar 23, 2009 3:20:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r18143 r18144 3042 3042 AssertMsgReturn(iClear <= RT_ELEMENTS(pVM->pgm.s.aHandyPages), ("%d", iClear), VERR_INTERNAL_ERROR); 3043 3043 Log(("PGMR3PhysAllocateHandyPages: %d -> %d\n", iClear, RT_ELEMENTS(pVM->pgm.s.aHandyPages))); 3044 int rcAlloc = VINF_SUCCESS; 3045 int rcSeed = VINF_SUCCESS; 3044 3046 int rc = VMMR3CallR0(pVM, VMMR0_DO_PGM_ALLOCATE_HANDY_PAGES, 0, NULL); 3045 3047 while (rc == VERR_GMM_SEED_ME) 3046 3048 { 3047 3049 void *pvChunk; 3048 rc = SUPPageAlloc(GMM_CHUNK_SIZE >> PAGE_SHIFT, &pvChunk);3050 rcAlloc = rc = SUPPageAlloc(GMM_CHUNK_SIZE >> PAGE_SHIFT, &pvChunk); 3049 3051 if (RT_SUCCESS(rc)) 3050 3052 { 3051 rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvChunk, NULL);3053 rcSeed = rc = VMMR3CallR0(pVM, VMMR0_DO_GMM_SEED_CHUNK, (uintptr_t)pvChunk, NULL); 3052 3054 if (RT_FAILURE(rc)) 3053 3055 SUPPageFree(pvChunk, GMM_CHUNK_SIZE >> PAGE_SHIFT); … … 3076 3078 else 3077 3079 { 3078 LogRel(("PGM: Failed to procure handy pages, rc=%Rrc cHandyPages=%u\n", 3079 rc, pVM->pgm.s.cHandyPages)); 3080 LogRel(("PGM: Failed to procure handy pages; rc=%Rrc rcAlloc=%Rrc rcSeed=%Rrc cHandyPages=%#x\n" 3081 " cAllPages=%#x cPrivatePages=%#x cSharedPages=%#x cZeroPages=%#x\n", 3082 rc, rcSeed, rcAlloc, 3083 pVM->pgm.s.cHandyPages, 3084 pVM->pgm.s.cAllPages, 3085 pVM->pgm.s.cPrivatePages, 3086 pVM->pgm.s.cSharedPages, 3087 pVM->pgm.s.cZeroPages)); 3080 3088 rc = VERR_EM_NO_MEMORY; 3081 3089 //rc = VINF_EM_NO_MEMORY; … … 3086 3094 AssertMsg( pVM->pgm.s.cHandyPages == RT_ELEMENTS(pVM->pgm.s.aHandyPages) 3087 3095 || rc != VINF_SUCCESS, ("%d rc=%Rrc\n", pVM->pgm.s.cHandyPages, rc)); 3096 3088 3097 pgmUnlock(pVM); 3089 3098 Assert(rc == VINF_SUCCESS || rc == VINF_EM_NO_MEMORY || rc == VERR_EM_NO_MEMORY);
Note:
See TracChangeset
for help on using the changeset viewer.