VirtualBox

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


Ignore:
Timestamp:
Feb 9, 2024 11:58:56 AM (13 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161583
Message:

VMM/HMVMXR0: Nested VMX: bugref:10318 VMCS state 'launched' shouldn't be ORed only in VMX R0 code, each value is a separate state for a while now.

File:
1 edited

Legend:

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

    r102664 r103289  
    41694169
    41704170    PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo;
    4171     bool const   fResumeVM = RT_BOOL(pVmcsInfo->fVmcsState & VMX_V_VMCS_LAUNCH_STATE_LAUNCHED);
     4171    bool const   fResumeVM = RT_BOOL(pVmcsInfo->fVmcsState == VMX_V_VMCS_LAUNCH_STATE_LAUNCHED);
    41724172#ifdef VBOX_WITH_STATISTICS
    41734173    if (fResumeVM)
     
    62626262
    62636263    pVCpu->hmr0.s.vmx.fRestoreHostFlags |= VMX_RESTORE_HOST_REQUIRED;   /* Some host state messed up by VMX needs restoring. */
    6264     pVmcsInfo->fVmcsState |= VMX_V_VMCS_LAUNCH_STATE_LAUNCHED;          /* Use VMRESUME instead of VMLAUNCH in the next run. */
     6264    pVmcsInfo->fVmcsState = VMX_V_VMCS_LAUNCH_STATE_LAUNCHED;           /* Use VMRESUME instead of VMLAUNCH in the next run. */
    62656265#ifdef VBOX_STRICT
    62666266    hmR0VmxCheckHostEferMsr(pVmcsInfo);                                 /* Verify that the host EFER MSR wasn't modified. */
     
    64446444    RT_ZERO(VmxTransient);
    64456445    VmxTransient.pVmcsInfo = hmGetVmxActiveVmcsInfo(pVCpu);
     6446    Assert(!pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs);
    64466447
    64476448    /* Paranoia. */
     
    65566557    VmxTransient.pVmcsInfo      = hmGetVmxActiveVmcsInfo(pVCpu);
    65576558    VmxTransient.fIsNestedGuest = true;
     6559    Assert(pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs);
    65586560
    65596561    /* Paranoia. */
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