VirtualBox

Changeset 67523 in vbox


Ignore:
Timestamp:
Jun 21, 2017 7:42:15 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
116263
Message:

VBoxRecompiler: Prevent accidental execution of hardware virtualized nested-guest code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/recompiler/VBoxRecompiler.c

    r66262 r67523  
    4444#include <VBox/vmm/ssm.h>
    4545#include <VBox/vmm/em.h>
     46#include <VBox/vmm/iem.h>
    4647#include <VBox/vmm/trpm.h>
    4748#include <VBox/vmm/iom.h>
     
    21362137    pVM->rem.s.Env.pVCpu = pVCpu;
    21372138    pCtx = pVM->rem.s.pCtx = CPUMQueryGuestCtxPtr(pVCpu);
     2139
     2140    Assert(pCtx);
     2141    if (CPUMIsGuestInNestedHwVirtMode(pCtx))
     2142    {
     2143        AssertMsgFailed(("Bad scheduling - can't exec. nested-guest in REM!\n"));
     2144        return VERR_NOT_SUPPORTED;
     2145    }
    21382146
    21392147    Assert(!pVM->rem.s.fInREM);
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