VirtualBox

Changeset 70879 in vbox


Ignore:
Timestamp:
Feb 6, 2018 10:53:13 AM (7 years ago)
Author:
vboxsync
Message:

VMM/IEM: Don't look at nested SVM state when it isn't there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IEMAllCImpl.cpp.h

    r70612 r70879  
    50895089        {
    50905090#ifdef VBOX_WITH_NESTED_HWVIRT
    5091             PCSVMVMCBCTRL pVmcbCtrl = &pCtx->hwvirt.svm.CTX_SUFF(pVmcb)->ctrl;
    5092             if (pVmcbCtrl->IntCtrl.n.u1VIntrMasking)
    5093             {
    5094                 crX = pVmcbCtrl->IntCtrl.n.u8VTPR;
    5095                 break;
     5091            if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
     5092            {
     5093                PCSVMVMCBCTRL pVmcbCtrl = &pCtx->hwvirt.svm.CTX_SUFF(pVmcb)->ctrl;
     5094                if (pVmcbCtrl->IntCtrl.n.u1VIntrMasking)
     5095                {
     5096                    crX = pVmcbCtrl->IntCtrl.n.u8VTPR;
     5097                    break;
     5098                }
    50965099            }
    50975100#endif
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