VirtualBox

Changeset 70721 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jan 24, 2018 9:00:50 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
120466
Message:

VMM/HMSVMR0: Nested Hw.virt: Exclude VINTR intercept of the outer guest while executing the nested-guest. It will remain in the outer guest's VMCB and
thus should be used when switching to the outer guest.

File:
1 edited

Legend:

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

    r70704 r70721  
    19791979    if (HMCPU_CF_IS_PENDING(pVCpu, HM_CHANGED_GUEST_XCPT_INTERCEPTS))
    19801980    {
    1981         /* First, load the guest intercepts into the guest VMCB. */
     1981        /* First, load the guest exception intercepts into the guest VMCB. */
    19821982        PSVMVMCB pVmcb = pVCpu->hm.s.svm.pVmcb;
    1983         Assert(!(pVmcb->ctrl.u64InterceptCtrl & SVM_CTRL_INTERCEPT_VINTR));
    19841983        hmR0SvmLoadGuestXcptIntercepts(pVCpu, pVmcb, pCtx);
    19851984
     
    20042003        pVmcbNstGst->ctrl.u16InterceptWrDRx |= 0xffff;
    20052004
     2005        /* Exclude the VINTR intercept of the outer guest as we don't need to cause VINTR #VMEXITs
     2006           that belong to the nested-guest to the outer guest. */
    20062007        pVmcbNstGst->ctrl.u32InterceptXcpt  |= pVmcb->ctrl.u32InterceptXcpt;
    2007         pVmcbNstGst->ctrl.u64InterceptCtrl  |= pVmcb->ctrl.u64InterceptCtrl
     2008        pVmcbNstGst->ctrl.u64InterceptCtrl  |= (pVmcb->ctrl.u64InterceptCtrl & ~SVM_CTRL_INTERCEPT_VINTR)
    20082009                                            |  HMSVM_MANDATORY_GUEST_CTRL_INTERCEPTS;
    20092010
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