VirtualBox

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


Ignore:
Timestamp:
Sep 16, 2019 6:38:37 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133377
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 Use CPUM[Is|Set]GuestVmxInterceptEvents. Added comment regarding TRPM and intercepting events in the nested-guest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r80742 r80810  
    1034610346     * guest to cause a VM-exit the next time they are ready to receive the event.
    1034710347     *
    10348      * With nested-guests, evaluating pending events may cause VM-exits.
     10348     * With nested-guests, evaluating pending events may cause VM-exits. Also, verify
     10349     * that the event in TRPM that we will inject using hardware-assisted VMX is -not-
     10350     * subject to interecption. Otherwise, we should have checked and injected them
     10351     * manually elsewhere (IEM).
    1034910352     */
    1035010353    if (TRPMHasTrap(pVCpu))
    1035110354    {
    10352         Assert(!pVmxTransient->fIsNestedGuest || !pVCpu->cpum.GstCtx.hwvirt.vmx.fInterceptEvents);
     10355        Assert(!pVmxTransient->fIsNestedGuest || !CPUMIsGuestVmxInterceptEvents(&pVCpu->cpum.GstCtx));
    1035310356        hmR0VmxTrpmTrapToPendingEvent(pVCpu);
    1035410357    }
     
    1047310476             */
    1047410477            if (pVmxTransient->fIsNestedGuest)
    10475                 pVCpu->cpum.GstCtx.hwvirt.vmx.fInterceptEvents = true;
     10478                CPUMSetGuestVmxInterceptEvents(&pVCpu->cpum.GstCtx, true);
    1047610479#endif
    1047710480
Note: See TracChangeset for help on using the changeset viewer.

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