VirtualBox

Changeset 67712 in vbox for trunk/src/VBox/VMM/VMMR3/EM.cpp


Ignore:
Timestamp:
Jun 30, 2017 6:50:29 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116559
Message:

VMM/EM: Nested Hw.virt: Can't directly inspect eflags when in nested SVM guest mode.

File:
1 edited

Legend:

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

    r67553 r67712  
    19601960            {
    19611961                bool     fIntrEnabled;
     1962                PCPUMCTX pCtx = pVCpu->em.s.pCtx;
    19621963#ifdef VBOX_WITH_RAW_MODE
    1963                 fIntrEnabled = PATMAreInterruptsEnabled(pVM);
     1964                /* We cannot just inspect EFLAGS when nested hw.virt is enabled (see e.g. CPUMCanSvmNstGstTakePhysIntr). */
     1965                fIntrEnabled = !PATMIsPatchGCAddr(pVM, pCtx->eip);
    19641966#else
    19651967                fIntrEnabled = true;
    19661968#endif
    19671969                /** @todo Can we centralize this under CPUMCanInjectInterrupt()? */
    1968                 PCPUMCTX pCtx = pVCpu->em.s.pCtx;
    19691970#ifdef VBOX_WITH_NESTED_HWVIRT
    19701971                fIntrEnabled &= pCtx->hwvirt.svm.fGif;
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