VirtualBox

Changeset 79844 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 17, 2019 5:56:00 PM (6 years ago)
Author:
vboxsync
Message:

VMM/TRPM: Nested VMX: bugref:9180 Fix assertion for guest hypervisors that use "acknowledge interrupt on exit" control.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TRPM.cpp

    r77092 r79844  
    14991499VMMR3DECL(int) TRPMR3InjectEvent(PVM pVM, PVMCPU pVCpu, TRPMEVENT enmEvent, bool *pfInjected)
    15001500{
     1501    PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    15011502#ifdef VBOX_WITH_RAW_MODE
    1502     PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu);
    15031503    Assert(!PATMIsPatchGCAddr(pVM, pCtx->eip));
    15041504#endif
     
    15171517# endif
    15181518
    1519     Assert(!CPUMIsGuestInNestedHwvirtMode(pCtx));
     1519    Assert(  !CPUMIsGuestInNestedHwvirtMode(pCtx)
     1520           || CPUMIsGuestVmxExitCtlsSet(pVCpu, pCtx, VMX_EXIT_CTLS_ACK_EXT_INT));
    15201521    uint8_t u8Interrupt = 0;
    15211522    int rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
     
    15861587
    15871588#else  /* !TRPM_FORWARD_TRAPS_IN_GC */
    1588     RT_NOREF(pVM, enmEvent);
     1589    RT_NOREF3(pVM, enmEvent, pCtx);
    15891590    uint8_t u8Interrupt = 0;
    15901591    int rc = PDMGetInterrupt(pVCpu, &u8Interrupt);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette