Changeset 72910 in vbox for trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
- Timestamp:
- Jul 5, 2018 8:56:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r72909 r72910 39 39 #ifdef DEBUG_ramshankar 40 40 # define HMSVM_SYNC_FULL_GUEST_STATE 41 # define HMSVM_SYNC_FULL_NESTED_GUEST_STATE42 41 # define HMSVM_ALWAYS_TRAP_ALL_XCPTS 43 42 # define HMSVM_ALWAYS_TRAP_PF … … 4367 4366 } 4368 4367 4369 #ifdef HMSVM_SYNC_FULL_ NESTED_GUEST_STATE4368 #ifdef HMSVM_SYNC_FULL_GUEST_STATE 4370 4369 Assert(!(pCtx->fExtrn & HMSVM_CPUMCTX_EXTRN_ALL)); 4371 4370 ASMAtomicUoOrU64(&pVCpu->hm.s.fCtxChanged, HM_CHANGED_ALL_GUEST); … … 4472 4471 4473 4472 #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); 4479 4475 #endif 4480 4476 … … 4797 4793 4798 4794 #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)); 4804 4797 #else 4805 4798 /* … … 4826 4819 #endif 4827 4820 4828 #ifdef DEBUG_ramshankar4829 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 #endif4835 4836 4821 if ( pSvmTransient->u64ExitCode != SVM_EXIT_INVALID 4837 4822 && pVCpu->hm.s.svm.fSyncVTpr) … … 4854 4839 } 4855 4840 } 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 4856 4849 4857 4850 HMSVM_CPUMCTX_ASSERT(pVCpu, CPUMCTX_EXTRN_CS | CPUMCTX_EXTRN_RIP);
Note:
See TracChangeset
for help on using the changeset viewer.