VirtualBox

Ignore:
Timestamp:
May 9, 2023 4:17:08 AM (19 months ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10318 Moved vmxHCGetGuestIntrStateWithUpdate() back into vmxHCEvaluatePendingEvent[Nested] as it implicitly ensures ordering.

File:
1 edited

Legend:

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

    r99665 r99687  
    48594859 *
    48604860 * @returns Strict VBox status code (i.e. informational status codes too).
    4861  * @param   pVCpu       The cross context virtual CPU structure.
    4862  * @param   pVmcsInfo   The VMCS information structure.
    4863  */
    4864 static VBOXSTRICTRC vmxHCEvaluatePendingEvent(PVMCPUCC pVCpu, PVMXVMCSINFO pVmcsInfo)
    4865 {
     4861 * @param   pVCpu           The cross context virtual CPU structure.
     4862 * @param   pVmcsInfo       The VMCS information structure.
     4863 * @param   pfIntrState     Where to store the updated VMX guest-interruptibility
     4864 *                          state.
     4865 */
     4866static VBOXSTRICTRC vmxHCEvaluatePendingEvent(PVMCPUCC pVCpu, PVMXVMCSINFO pVmcsInfo, uint32_t *pfIntrState)
     4867{
     4868    Assert(pfIntrState);
    48664869    Assert(!TRPMHasTrap(pVCpu));
     4870
     4871    *pfIntrState = vmxHCGetGuestIntrStateWithUpdate(pVCpu);
    48674872
    48684873    /*
     
    49844989 *
    49854990 * @returns Strict VBox status code (i.e. informational status codes too).
    4986  * @param   pVCpu       The cross context virtual CPU structure.
    4987  * @param   pVmcsInfo   The VMCS information structure.
     4991 * @param   pVCpu           The cross context virtual CPU structure.
     4992 * @param   pVmcsInfo       The VMCS information structure.
     4993 * @param   pfIntrState     Where to store the updated VMX guest-interruptibility
     4994 *                          state.
    49884995 *
    49894996 * @remarks The guest must be in VMX non-root mode.
    49904997 */
    4991 static VBOXSTRICTRC vmxHCEvaluatePendingEventNested(PVMCPUCC pVCpu, PVMXVMCSINFO pVmcsInfo)
     4998static VBOXSTRICTRC vmxHCEvaluatePendingEventNested(PVMCPUCC pVCpu, PVMXVMCSINFO pVmcsInfo, uint32_t *pfIntrState)
    49924999{
    49935000    PCCPUMCTX pCtx = &pVCpu->cpum.GstCtx;
    49945001
     5002    Assert(pfIntrState);
    49955003    Assert(CPUMIsGuestInVmxNonRootMode(pCtx));
    49965004    Assert(!TRPMHasTrap(pVCpu));
     5005
     5006    *pfIntrState = vmxHCGetGuestIntrStateWithUpdate(pVCpu);
    49975007
    49985008    /*
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