Changeset 10683 in vbox for trunk/src/VBox
- Timestamp:
- Jul 16, 2008 7:45:39 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r10682 r10683 65 65 DECLR0CALLBACKMEMBER(int, pfnEnterSession,(PVM pVM, PHWACCM_CPUINFO pCpu)); 66 66 DECLR0CALLBACKMEMBER(int, pfnLeaveSession,(PVM pVM)); 67 DECLR0CALLBACKMEMBER(int, pfnSaveHostState,(PVM pVM)); 67 68 DECLR0CALLBACKMEMBER(int, pfnLoadGuestState,(PVM pVM, CPUMCTX *pCtx)); 68 69 DECLR0CALLBACKMEMBER(int, pfnRunGuestCode,(PVM pVM, CPUMCTX *pCtx)); … … 145 146 HWACCMR0Globals.pfnEnterSession = HWACCMR0DummyEnter; 146 147 HWACCMR0Globals.pfnLeaveSession = HWACCMR0DummyLeave; 148 HWACCMR0Globals.pfnSaveHostState = HWACCMR0DummySaveHostState; 147 149 HWACCMR0Globals.pfnLoadGuestState = HWACCMR0DummyLoadGuestState; 148 150 HWACCMR0Globals.pfnRunGuestCode = HWACCMR0DummyRunGuestCode; … … 341 343 HWACCMR0Globals.pfnEnterSession = VMXR0Enter; 342 344 HWACCMR0Globals.pfnLeaveSession = VMXR0Leave; 345 HWACCMR0Globals.pfnSaveHostState = VMXR0SaveHostState; 343 346 HWACCMR0Globals.pfnLoadGuestState = VMXR0LoadGuestState; 344 347 HWACCMR0Globals.pfnRunGuestCode = VMXR0RunGuestCode; … … 354 357 HWACCMR0Globals.pfnEnterSession = SVMR0Enter; 355 358 HWACCMR0Globals.pfnLeaveSession = SVMR0Leave; 359 HWACCMR0Globals.pfnSaveHostState = SVMR0SaveHostState; 356 360 HWACCMR0Globals.pfnLoadGuestState = SVMR0LoadGuestState; 357 361 HWACCMR0Globals.pfnRunGuestCode = SVMR0RunGuestCode; … … 738 742 739 743 rc = HWACCMR0Globals.pfnEnterSession(pVM, &HWACCMR0Globals.aCpuInfo[idCpu]); 744 AssertRC(rc); 745 /* We must save the host context here (VT-x) as we might be rescheduled on a different cpu after a long jump back to ring 3. */ 746 rc |= HWACCMR0Globals.pfnSaveHostState(pVM); 740 747 AssertRC(rc); 741 748 rc |= HWACCMR0Globals.pfnLoadGuestState(pVM, pCtx); -
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r10682 r10683 508 508 509 509 /** 510 * Save the host state 511 * 512 * @returns VBox status code. 513 * @param pVM The VM to operate on. 514 */ 515 HWACCMR0DECL(int) SVMR0SaveHostState(PVM pVM) 516 { 517 /* Nothing to do here. */ 518 return VINF_SUCCESS; 519 } 520 521 /** 510 522 * Loads the guest state 511 523 *
Note:
See TracChangeset
for help on using the changeset viewer.