Changeset 70732 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Jan 25, 2018 4:50:36 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120487
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r70415 r70732 752 752 753 753 /** 754 * Frees memory allocated by cpumR3AllocHwVirtState().754 * Frees memory allocated for the SVM hardware virtualization state. 755 755 * 756 756 * @param pVM The cross context VM structure. 757 757 */ 758 static void cpumR3Free HwVirtState(PVM pVM)758 static void cpumR3FreeSvmHwVirtState(PVM pVM) 759 759 { 760 760 Assert(pVM->cpum.ro.GuestFeatures.fSvm); … … 785 785 786 786 /** 787 * Allocates memory required by thehardware virtualization state.787 * Allocates memory for the SVM hardware virtualization state. 788 788 * 789 789 * @returns VBox status code. 790 790 * @param pVM The cross context VM structure. 791 791 */ 792 static int cpumR3Alloc HwVirtState(PVM pVM)792 static int cpumR3AllocSvmHwVirtState(PVM pVM) 793 793 { 794 794 Assert(pVM->cpum.ro.GuestFeatures.fSvm); … … 850 850 /* On any failure, cleanup. */ 851 851 if (RT_FAILURE(rc)) 852 cpumR3Free HwVirtState(pVM);852 cpumR3FreeSvmHwVirtState(pVM); 853 853 854 854 return rc; … … 1039 1039 if (pVM->cpum.ro.GuestFeatures.fSvm) 1040 1040 { 1041 rc = cpumR3Alloc HwVirtState(pVM);1041 rc = cpumR3AllocSvmHwVirtState(pVM); 1042 1042 if (RT_FAILURE(rc)) 1043 1043 return rc; … … 1126 1126 1127 1127 if (pVM->cpum.ro.GuestFeatures.fSvm) 1128 cpumR3Free HwVirtState(pVM);1128 cpumR3FreeSvmHwVirtState(pVM); 1129 1129 return VINF_SUCCESS; 1130 1130 } … … 1282 1282 * Hardware virtualization state. 1283 1283 */ 1284 pCtx->hwvirt.fGif = 1; 1285 1284 1286 /* SVM. */ 1285 1287 if (pCtx->hwvirt.svm.CTX_SUFF(pVmcb)) 1288 { 1286 1289 memset(pCtx->hwvirt.svm.CTX_SUFF(pVmcb), 0, SVM_VMCB_PAGES << PAGE_SHIFT); 1287 pCtx->hwvirt.svm.uMsrHSavePa = 0;1288 pCtx->hwvirt.svm.GCPhysVmcb = 0;1289 pCtx->hwvirt.svm.fGif = 1;1290 pCtx->hwvirt.svm.uMsrHSavePa = 0; 1291 pCtx->hwvirt.svm.GCPhysVmcb = 0; 1292 } 1290 1293 } 1291 1294 … … 2456 2459 pHlp->pfnPrintf(pHlp, " idtr = %016RX64:%04x\n", pCtx->hwvirt.svm.HostState.idtr.pIdt, 2457 2460 pCtx->hwvirt.svm.HostState.idtr.cbIdt); 2458 pHlp->pfnPrintf(pHlp, " fGif = %u\n", pCtx->hwvirt. svm.fGif);2461 pHlp->pfnPrintf(pHlp, " fGif = %u\n", pCtx->hwvirt.fGif); 2459 2462 pHlp->pfnPrintf(pHlp, " cPauseFilter = %RU16\n", pCtx->hwvirt.svm.cPauseFilter); 2460 2463 pHlp->pfnPrintf(pHlp, " cPauseFilterThreshold = %RU32\n", pCtx->hwvirt.svm.cPauseFilterThreshold); -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r70730 r70732 1960 1960 { 1961 1961 PCPUMCTX pCtx = pVCpu->em.s.pCtx; 1962 bool fGif = pCtx->hwvirt. svm.fGif;1962 bool fGif = pCtx->hwvirt.fGif; 1963 1963 #ifdef VBOX_WITH_RAW_MODE 1964 1964 /* We cannot just inspect EFLAGS when nested hw.virt is enabled (see e.g. CPUMCanSvmNstGstTakePhysIntr). */
Note:
See TracChangeset
for help on using the changeset viewer.