Changeset 24249 in vbox
- Timestamp:
- Nov 2, 2009 12:44:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r24248 r24249 2514 2514 /* Must save the host LSTAR msr to restore it later. */ 2515 2515 fRestoreLSTAR = true; 2516 u64LSTAR = ASMRdMsr(MSR_K8_LSTAR);2517 2516 } 2518 2517 } … … 2614 2613 #endif 2615 2614 2615 /* Save the current TPR value in the LSTAR msr so our patches can access it. */ 2616 if (fRestoreLSTAR) 2617 { 2618 Assert(pVM->hwaccm.s.fTPRPatchingActive); 2619 u64LSTAR = ASMRdMsr(MSR_K8_LSTAR); 2620 ASMWrMsr(MSR_K8_LSTAR, u8LastTPR); 2621 } 2622 2616 2623 TMNotifyStartOfExecution(pVCpu); 2617 2624 #ifdef VBOX_WITH_KERNEL_USING_XMM … … 2634 2641 { 2635 2642 Assert(pVM->hwaccm.s.fTPRPatchingActive); 2643 pCtx->msrLSTAR = ASMRdMsr(MSR_K8_LSTAR); 2636 2644 ASMWrMsr(MSR_K8_LSTAR, u64LSTAR); 2637 2645 }
Note:
See TracChangeset
for help on using the changeset viewer.