Changeset 1291 in vbox
- Timestamp:
- Mar 7, 2007 9:11:47 AM (18 years ago)
- svn:sync-xref-src-repo-rev:
- 19244
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/HWACCM.cpp
r1273 r1291 194 194 STAM_REG(pVM, &pVM->hwaccm.s.StatExitIrqWindow, STAMTYPE_COUNTER, "/HWACCM/Exit/GuestIrq/Pending", STAMUNIT_OCCURENCES, "Nr of occurances"); 195 195 196 STAM_REG(pVM, &pVM->hwaccm.s.StatExitForced, STAMTYPE_COUNTER, "/HWACCM/Exit/SVM/Forced", STAMUNIT_OCCURENCES, "Nr of forced exits");197 198 196 STAM_REG(pVM, &pVM->hwaccm.s.StatSwitchGuestIrq,STAMTYPE_COUNTER, "/HWACCM/Switch/IrqPending", STAMUNIT_OCCURENCES, "Nr of occurances"); 199 197 STAM_REG(pVM, &pVM->hwaccm.s.StatSwitchToR3, STAMTYPE_COUNTER, "/HWACCM/Switch/ToR3", STAMUNIT_OCCURENCES, "Nr of occurances"); -
trunk/src/VBox/VMM/HWACCMInternal.h
r1273 r1291 279 279 STAMCOUNTER StatIntReinject; 280 280 STAMCOUNTER StatPendingHostIrq; 281 STAMCOUNTER StatExitForced;282 281 283 282 STAMCOUNTER StatSwitchGuestIrq; -
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r1273 r1291 515 515 SVM_VMCB *pVMCB; 516 516 bool fForceTLBFlush = false; 517 int cResume = 0;518 517 519 518 STAM_PROFILE_ADV_START(&pVM->hwaccm.s.StatEntry, x); … … 525 524 */ 526 525 ResumeExecution: 527 cResume++;528 526 529 527 /* Check for irq inhibition due to instruction fusing (sti, mov ss). */ … … 821 819 pVM->hwaccm.s.Event.errCode = 0; 822 820 } 823 /** @note Safety precaution; frequent loops have been observed even though external interrupts were pending. */824 if (cResume > 32 /* low limit, but anything higher risks a hanging host due to interrupts left pending for too long */)825 {826 exitCode = SVM_EXIT_INTR;827 STAM_COUNTER_INC(&pVM->hwaccm.s.StatExitForced);828 }829 830 821 STAM_COUNTER_INC(&pVM->hwaccm.s.pStatExitReason[exitCode & MASK_EXITREASON_STAT]); 831 822
Note:
See TracChangeset
for help on using the changeset viewer.