Changeset 10542 in vbox
- Timestamp:
- Jul 11, 2008 6:03:56 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33230
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r10537 r10542 1748 1748 case SVM_EXIT_HLT: 1749 1749 /** Check if external interrupts are pending; if so, don't switch back. */ 1750 pCtx->rip++; /* skip hlt */ 1750 1751 if ( pCtx->eflags.Bits.u1IF 1751 1752 && VM_FF_ISPENDING(pVM, (VM_FF_INTERRUPT_APIC|VM_FF_INTERRUPT_PIC))) 1752 1753 { 1753 pCtx->rip++; /* skip hlt */1754 1754 goto ResumeExecution; 1755 1755 } 1756 1757 rc = VINF_EM_RAW_EMULATE_INSTR_HLT; 1756 rc = VINF_EM_HALT; 1758 1757 break; 1759 1758 -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r10537 r10542 2034 2034 case VMX_EXIT_HLT: /* 12 Guest software attempted to execute HLT. */ 2035 2035 /** Check if external interrupts are pending; if so, don't switch back. */ 2036 pCtx->rip++; /* skip hlt */ 2036 2037 if ( pCtx->eflags.Bits.u1IF 2037 2038 && VM_FF_ISPENDING(pVM, (VM_FF_INTERRUPT_APIC|VM_FF_INTERRUPT_PIC))) 2038 2039 { 2039 pCtx->rip++; /* skip hlt */2040 2040 goto ResumeExecution; 2041 2041 } 2042 2042 2043 rc = VINF_EM_ RAW_EMULATE_INSTR_HLT;2043 rc = VINF_EM_HALT; 2044 2044 break; 2045 2045
Note:
See TracChangeset
for help on using the changeset viewer.