Changeset 21988 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 5, 2009 12:16:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r21987 r21988 1629 1629 && CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0 1630 1630 && !CPUMIsGuestInLongModeEx(pCtx) 1631 && pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches) 1631 && pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches)) 1632 1632 { 1633 1633 RTGCPHYS GCPhysApicBase, GCPhys; … … 1797 1797 && CPUMGetGuestCPL(pVCpu, CPUMCTX2CORE(pCtx)) == 0 1798 1798 && !CPUMIsGuestInLongModeEx(pCtx) 1799 && pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches) 1799 && pVM->hwaccm.s.svm.cPatches < RT_ELEMENTS(pVM->hwaccm.s.svm.aPatches)) 1800 1800 { 1801 1801 RTGCPHYS GCPhysApicBase; … … 2356 2356 if ( pVM->hwaccm.s.svm.fTPRPatchingActive 2357 2357 && pCtx->ecx == MSR_K8_LSTAR 2358 && pVMCB->ctrl.u64ExitInfo1 == 1 /* wrmsr */ 2359 && (pCtx->eax & 0xff) != u8LastTPR) 2360 { 2361 Log(("SVM: Faulting MSR_K8_LSTAR write with new TPR value %x\n", pCtx->eax & 0xff)); 2362 2363 /* Our patch code uses LSTAR for TPR caching. */ 2364 rc = PDMApicSetTPR(pVCpu, pCtx->eax & 0xff); 2365 AssertRC(rc); 2358 && pVMCB->ctrl.u64ExitInfo1 == 1 /* wrmsr */) 2359 { 2360 if ((pCtx->eax & 0xff) != u8LastTPR) 2361 { 2362 Log(("SVM: Faulting MSR_K8_LSTAR write with new TPR value %x\n", pCtx->eax & 0xff)); 2363 2364 /* Our patch code uses LSTAR for TPR caching. */ 2365 rc = PDMApicSetTPR(pVCpu, pCtx->eax & 0xff); 2366 AssertRC(rc); 2367 } 2366 2368 2367 2369 /* Skip the instruction and continue. */
Note:
See TracChangeset
for help on using the changeset viewer.