Changeset 44037 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Dec 5, 2012 9:43:18 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/TRPM.cpp
r43394 r44037 1494 1494 VMMR3DECL(int) TRPMR3InjectEvent(PVM pVM, PVMCPU pVCpu, TRPMEVENT enmEvent) 1495 1495 { 1496 PCPUMCTX pCtx; 1497 int rc; 1498 1499 pCtx = CPUMQueryGuestCtxPtr(pVCpu); 1496 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu); 1500 1497 Assert(!PATMIsPatchGCAddr(pVM, pCtx->eip)); 1501 1498 Assert(!VMCPU_FF_ISSET(pVCpu, VMCPU_FF_INHIBIT_INTERRUPTS)); … … 1518 1515 1519 1516 uint8_t u8Interrupt; 1520 rc = PDMGetInterrupt(pVCpu, &u8Interrupt);1517 int rc = PDMGetInterrupt(pVCpu, &u8Interrupt); 1521 1518 Log(("TRPMR3InjectEvent: CPU%d u8Interrupt=%d (%#x) rc=%Rrc\n", pVCpu->idCpu, u8Interrupt, u8Interrupt, rc)); 1522 1519 if (RT_SUCCESS(rc)) … … 1557 1554 else 1558 1555 STAM_COUNTER_INC(&pVM->trpm.s.StatForwardFailNoHandler); 1559 # ifdef VBOX_WITH_REM1556 # ifdef VBOX_WITH_REM 1560 1557 REMR3NotifyPendingInterrupt(pVM, pVCpu, u8Interrupt); 1561 # endif1558 # endif 1562 1559 } 1563 1560 else … … 1566 1563 return HMR3IsActive(pVCpu) ? VINF_EM_RESCHEDULE_HM : VINF_EM_RESCHEDULE_REM; /* (Heed the halted state if this is changed!) */ 1567 1564 } 1568 #else 1565 #else /* !TRPM_FORWARD_TRAPS_IN_GC */ 1569 1566 if (HMR3IsActive(pVCpu)) 1570 1567 { 1571 1568 uint8_t u8Interrupt; 1572 rc = PDMGetInterrupt(pVCpu, &u8Interrupt);1569 int rc = PDMGetInterrupt(pVCpu, &u8Interrupt); 1573 1570 Log(("TRPMR3InjectEvent: u8Interrupt=%d (%#x) rc=%Rrc\n", u8Interrupt, u8Interrupt, rc)); 1574 1571 if (RT_SUCCESS(rc)) … … 1580 1577 } 1581 1578 } 1582 else 1583 AssertRC(rc); 1584 #endif 1579 #endif /* !TRPM_FORWARD_TRAPS_IN_GC */ 1585 1580 } 1586 1581 /** @todo check if it's safe to translate the patch address to the original guest address.
Note:
See TracChangeset
for help on using the changeset viewer.