VirtualBox

Ignore:
Timestamp:
Feb 28, 2014 4:53:46 PM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: First entry into VT-x may already have saved the host-context, skip that case for the assertion checking for guest mode changes..

File:
1 edited

Legend:

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

    r50614 r50655  
    21052105    Assert(!VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_TLB_SHOOTDOWN));
    21062106
    2107     /* Don't assert that VMCPU_FF_TLB_FLUSH should no longer pending. It can be set by other EMTs. */
     2107    /* Don't assert that VMCPU_FF_TLB_FLUSH should no longer be pending. It can be set by other EMTs. */
    21082108}
    21092109
     
    45634563        if (pVCpu->hm.s.vmx.pfnStartVM != VMXR0SwitcherStartVM64)
    45644564        {
     4565            if (pVCpu->hm.s.vmx.pfnStartVM != NULL) /* Very first entry would have saved host-state already, ignore it. */
     4566            {
     4567                /* Currently, all mode changes sends us back to ring-3, so these should be set. See @bugref{6944}. */
     4568                AssertMsg(HMCPU_CF_IS_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_VMX_EXIT_CTLS | HM_CHANGED_VMX_ENTRY_CTLS),
     4569                          ("flags=%#x\n", HMCPU_CF_VALUE(pVCpu)));
     4570            }
    45654571            pVCpu->hm.s.vmx.pfnStartVM = VMXR0SwitcherStartVM64;
    4566             /* Currently, all mode changes sends us back to ring-3, so these should be set. See @bugref{6944}. */
    4567             Assert(HMCPU_CF_IS_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_VMX_EXIT_CTLS | HM_CHANGED_VMX_ENTRY_CTLS));
    45684572        }
    45694573#else
     
    45784582        if (pVCpu->hm.s.vmx.pfnStartVM != VMXR0StartVM32)
    45794583        {
     4584            if (pVCpu->hm.s.vmx.pfnStartVM != NULL) /* Very first entry would have saved host-state already, ignore it. */
     4585            {
     4586                /* Currently, all mode changes sends us back to ring-3, so these should be set. See @bugref{6944}. */
     4587                AssertMsg(HMCPU_CF_IS_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_VMX_EXIT_CTLS | HM_CHANGED_VMX_ENTRY_CTLS),
     4588                          ("flags=%#x\n", HMCPU_CF_VALUE(pVCpu)));
     4589            }
    45804590            pVCpu->hm.s.vmx.pfnStartVM = VMXR0StartVM32;
    4581             /* Currently, all mode changes sends us back to ring-3, so these should be set. See @bugref{6944}. */
    4582             Assert(HMCPU_CF_IS_SET(pVCpu, HM_CHANGED_HOST_CONTEXT | HM_CHANGED_VMX_EXIT_CTLS | HM_CHANGED_VMX_ENTRY_CTLS));
    45834591        }
    45844592#else
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