Changeset 24767 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Nov 18, 2009 5:15:02 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r24723 r24767 438 438 439 439 /** 440 * Deal with a write monitored page. 441 * 442 * @returns VBox strict status code. 443 * 444 * @param pVM The VM address. 445 * @param pPage The physical page tracking structure. 446 * 447 * @remarks Called from within the PGM critical section. 448 */ 449 void pgmPhysPageMakeWriteMonitoredWritable(PVM pVM, PPGMPAGE pPage) 450 { 451 Assert(PGM_PAGE_GET_STATE(pPage) == PGM_PAGE_STATE_WRITE_MONITORED); 452 PGM_PAGE_SET_WRITTEN_TO(pPage); 453 PGM_PAGE_SET_STATE(pPage, PGM_PAGE_STATE_ALLOCATED); 454 Assert(pVM->pgm.s.cMonitoredPages > 0); 455 pVM->pgm.s.cMonitoredPages--; 456 pVM->pgm.s.cWrittenToPages++; 457 } 458 459 460 /** 440 461 * Deal with pages that are not writable, i.e. not in the ALLOCATED state. 441 462 * … … 456 477 { 457 478 case PGM_PAGE_STATE_WRITE_MONITORED: 458 PGM_PAGE_SET_WRITTEN_TO(pPage); 459 PGM_PAGE_SET_STATE(pPage, PGM_PAGE_STATE_ALLOCATED); 460 Assert(pVM->pgm.s.cMonitoredPages > 0); 461 pVM->pgm.s.cMonitoredPages--; 462 pVM->pgm.s.cWrittenToPages++; 479 pgmPhysPageMakeWriteMonitoredWritable(pVM, pPage); 463 480 /* fall thru */ 464 481 default: /* to shut up GCC */
Note:
See TracChangeset
for help on using the changeset viewer.