Changeset 10667 in vbox
- Timestamp:
- Jul 15, 2008 2:52:51 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33379
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r10661 r10667 778 778 SVM_VMCB *pVMCB; 779 779 bool fGuestStateSynced = false; 780 bool fSyncTPR = false; 780 781 unsigned cResume = 0; 781 782 uint8_t u8LastVTPR; … … 878 879 */ 879 880 pVMCB->ctrl.u16InterceptWrCRx &= ~RT_BIT(8); 881 882 fSyncTPR = !fPending; 880 883 } 881 884 … … 1210 1213 STAM_COUNTER_INC(&pVM->hwaccm.s.pStatExitReasonR0[exitCode & MASK_EXITREASON_STAT]); 1211 1214 #endif 1215 1216 if (fSyncTPR) 1217 { 1218 rc = PDMApicSetTPR(pVM, pVMCB->ctrl.IntCtrl.n.u8VTPR); 1219 AssertRC(rc); 1220 } 1212 1221 1213 1222 /* Deal with the reason of the VM-exit. */ -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r10661 r10667 1036 1036 RTGCUINTPTR errCode, instrInfo, uInterruptState; 1037 1037 bool fGuestStateSynced = false; 1038 bool fSyncTPR = false; 1038 1039 unsigned cResume = 0; 1039 1040 #ifdef VBOX_STRICT … … 1197 1198 rc = VMXWriteVMCS(VMX_VMCS_CTRL_TPR_THRESHOLD, (fPending) ? u8TPR : 0); 1198 1199 AssertRC(rc); 1200 1201 fSyncTPR = !fPending; 1199 1202 } 1200 1203 … … 1527 1530 Log2(("IntInfo = %08x\n", intInfo)); 1528 1531 Log2(("New EIP=%VGv\n", pCtx->rip)); 1532 1533 if (fSyncTPR) 1534 { 1535 rc = PDMApicSetTPR(pVM, pVM->hwaccm.s.vmx.pAPIC[0x80]); 1536 AssertRC(rc); 1537 } 1529 1538 1530 1539 /* Some cases don't need a complete resync of the guest CPU state; handle them here. */
Note:
See TracChangeset
for help on using the changeset viewer.