Changeset 27630 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 23, 2010 1:48:50 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59186
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r26152 r27630 1096 1096 } 1097 1097 1098 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1099 bool fStartedSet = PGMDynMapStartOrMigrateAutoSet(pVCpu); 1100 #endif 1101 1098 1102 rc = HWACCMR0Globals.pfnEnterSession(pVM, pVCpu, pCpu); 1099 1103 AssertRC(rc); … … 1104 1108 AssertRC(rc); 1105 1109 1110 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1111 if (fStartedSet) 1112 PGMDynMapReleaseAutoSet(pVCpu); 1113 #endif 1114 1106 1115 /* keep track of the CPU owning the VMCS for debugging scheduling weirdness and ring-3 calls. */ 1107 if (RT_SUCCESS(rc)) 1108 { 1109 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1110 PGMDynMapMigrateAutoSet(pVCpu); 1111 #endif 1112 } 1113 else 1116 if (RT_FAILURE(rc)) 1114 1117 pVCpu->hwaccm.s.idEnteredCpu = NIL_RTCPUID; 1115 1118 return rc; -
trunk/src/VBox/VMM/VMMR0/PGMR0DynMap.cpp
r27464 r27630 1518 1518 1519 1519 /** 1520 * Starts or migrates the autoset of a virtual CPU. 1521 * 1522 * This is used by HWACCMR0Enter. When we've longjumped out of the HWACCM 1523 * execution loop with the set open, we'll migrate it when re-entering. While 1524 * under normal circumstances, we'll start it so VMXR0LoadGuestState can access 1525 * guest memory. 1526 * 1527 * @returns @c true if started, @c false if migrated. 1528 * @param pVCpu The shared data for the current virtual CPU. 1529 * @thread EMT 1530 */ 1531 VMMDECL(bool) PGMDynMapStartOrMigrateAutoSet(PVMCPU pVCpu) 1532 { 1533 bool fStartIt = pVCpu->pgm.s.AutoSet.cEntries == PGMMAPSET_CLOSED; 1534 if (fStartIt) 1535 PGMDynMapStartAutoSet(pVCpu); 1536 else 1537 PGMDynMapMigrateAutoSet(pVCpu); 1538 return fStartIt; 1539 } 1540 1541 1542 /** 1520 1543 * Worker that performs the actual flushing of the set. 1521 1544 *
Note:
See TracChangeset
for help on using the changeset viewer.