Changeset 10504 in vbox for trunk/src/VBox
- Timestamp:
- Jul 11, 2008 9:41:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r10503 r10504 872 872 pVMCB->ctrl.NestedPaging.n.u1NestedPaging = pVM->hwaccm.s.fNestedPaging; 873 873 874 #ifdef LOG_ENABLED 875 PHWACCM_CPUINFO pCpuTemp = HWACCMR0GetCurrentCpu(); 876 if ( pVM->hwaccm.s.svm.idLastCpu != pCpuTemp->idCpu 877 || pVM->hwaccm.s.svm.cTLBFlushes != pCpuTemp->cTLBFlushes) 878 { 879 if (pVM->hwaccm.s.svm.idLastCpu != pCpuTemp->idCpu) 880 Log(("Force TLB flush due to rescheduling to a different cpu (%d vs %d)\n", pVM->hwaccm.s.svm.idLastCpu, pCpuTemp->idCpu)); 881 else 882 Log(("Force TLB flush due to changed TLB flush count (%x vs %x)\n", pVM->hwaccm.s.svm.cTLBFlushes, pCpuTemp->cTLBFlushes)); 883 } 884 if (pCpuTemp->fFlushTLB) 885 Log(("SVMR0RunGuestCode: First time cpu %d is used -> flush\n", pCpuTemp->idCpu)); 886 #endif 887 874 888 /* 875 889 * NOTE: DO NOT DO ANYTHING AFTER THIS POINT THAT MIGHT JUMP BACK TO RING 3! … … 883 897 || pVM->hwaccm.s.svm.cTLBFlushes != pCpu->cTLBFlushes) 884 898 { 885 #ifdef LOG_ENABLED886 if (pVM->hwaccm.s.svm.idLastCpu != pCpu->idCpu)887 Log(("Force TLB flush due to rescheduling to a different cpu (%d vs %d)\n", pVM->hwaccm.s.svm.idLastCpu, pCpu->idCpu));888 else889 Log(("Force TLB flush due to changed TLB flush count (%x vs %x)\n", pVM->hwaccm.s.svm.cTLBFlushes, pCpu->cTLBFlushes));890 #endif891 899 /* Force a TLB flush on VM entry. */ 892 900 pVM->hwaccm.s.svm.fForceTLBFlush = true; … … 901 909 || pCpu->fFlushTLB) 902 910 { 903 #ifdef LOG_ENABLED904 if (pCpu->fFlushTLB)905 Log(("SVMR0RunGuestCode: First time cpu %d is used -> flush\n", pCpu->idCpu));906 #endif907 908 911 pCpu->fFlushTLB = false; 909 912 pCpu->uCurrentASID = 1; /* start at 1; host uses 0 */
Note:
See TracChangeset
for help on using the changeset viewer.