VirtualBox

Ignore:
Timestamp:
Jul 5, 2018 8:56:37 AM (6 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Remove confusing HMSVM_SYNC_FULL_NESTED_GUEST_STATE option. Figure out if it's needed later.

File:
1 edited

Legend:

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

    r72909 r72910  
    3939#ifdef DEBUG_ramshankar
    4040# define HMSVM_SYNC_FULL_GUEST_STATE
    41 # define HMSVM_SYNC_FULL_NESTED_GUEST_STATE
    4241# define HMSVM_ALWAYS_TRAP_ALL_XCPTS
    4342# define HMSVM_ALWAYS_TRAP_PF
     
    43674366    }
    43684367
    4369 #ifdef HMSVM_SYNC_FULL_NESTED_GUEST_STATE
     4368#ifdef HMSVM_SYNC_FULL_GUEST_STATE
    43704369    Assert(!(pCtx->fExtrn & HMSVM_CPUMCTX_EXTRN_ALL));
    43714370    ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_ALL_GUEST);
     
    44724471
    44734472#ifdef HMSVM_SYNC_FULL_GUEST_STATE
    4474     if (!CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    4475     {
    4476         Assert(!(pCtx->fExtrn & HMSVM_CPUMCTX_EXTRN_ALL));
    4477         ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_ALL_GUEST);
    4478     }
     4473    Assert(!(pCtx->fExtrn & HMSVM_CPUMCTX_EXTRN_ALL));
     4474    ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_ALL_GUEST);
    44794475#endif
    44804476
     
    47974793
    47984794#ifdef HMSVM_SYNC_FULL_GUEST_STATE
    4799     if (!CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    4800         hmR0SvmImportGuestState(pVCpu, HMSVM_CPUMCTX_EXTRN_ALL);
    4801 #elif defined(HMSVM_SYNC_FULL_NESTED_GUEST_STATE)
    4802     if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    4803         hmR0SvmImportGuestState(pVCpu, HMSVM_CPUMCTX_EXTRN_ALL);
     4795    hmR0SvmImportGuestState(pVCpu, HMSVM_CPUMCTX_EXTRN_ALL);
     4796    Assert(!(pCtx->fExtrn & HMSVM_CPUMCTX_EXTRN_ALL));
    48044797#else
    48054798    /*
     
    48264819#endif
    48274820
    4828 #ifdef DEBUG_ramshankar
    4829     if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
    4830     {
    4831         hmR0SvmImportGuestState(pVCpu, HMSVM_CPUMCTX_EXTRN_ALL);
    4832         hmR0SvmLogState(pVCpu, pVmcb, pCtx, "hmR0SvmPostRunGuestNested", HMSVM_LOG_ALL & ~HMSVM_LOG_LBR, 0 /* uVerbose */);
    4833     }
    4834 #endif
    4835 
    48364821    if (   pSvmTransient->u64ExitCode != SVM_EXIT_INVALID
    48374822        && pVCpu->hm.s.svm.fSyncVTpr)
     
    48544839        }
    48554840    }
     4841
     4842#ifdef DEBUG_ramshankar
     4843    if (CPUMIsGuestInSvmNestedHwVirtMode(pCtx))
     4844    {
     4845        hmR0SvmImportGuestState(pVCpu, HMSVM_CPUMCTX_EXTRN_ALL);
     4846        hmR0SvmLogState(pVCpu, pVmcb, pCtx, "hmR0SvmPostRunGuestNested", HMSVM_LOG_ALL & ~HMSVM_LOG_LBR, 0 /* uVerbose */);
     4847    }
     4848#endif
    48564849
    48574850    HMSVM_CPUMCTX_ASSERT(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_RIP);
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