Changeset 77481 in vbox for trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
- Timestamp:
- Feb 27, 2019 12:59:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r77463 r77481 4988 4988 PVM pVM = pVCpu->CTX_SUFF(pVM); 4989 4989 #ifdef VBOX_WITH_KERNEL_USING_XMM 4990 int rc = hmR0VMXStartVMWrapXMM(fResumeVM, pCtx, &pVCpu->hm.s.vmx.V MCSCache, pVM, pVCpu, pVCpu->hm.s.vmx.pfnStartVM);4990 int rc = hmR0VMXStartVMWrapXMM(fResumeVM, pCtx, &pVCpu->hm.s.vmx.VmcsBatchCache, pVM, pVCpu, pVCpu->hm.s.vmx.pfnStartVM); 4991 4991 #else 4992 int rc = pVCpu->hm.s.vmx.pfnStartVM(fResumeVM, pCtx, &pVCpu->hm.s.vmx.V MCSCache, pVM, pVCpu);4992 int rc = pVCpu->hm.s.vmx.pfnStartVM(fResumeVM, pCtx, &pVCpu->hm.s.vmx.VmcsBatchCache, pVM, pVCpu); 4993 4993 #endif 4994 4994 AssertMsg(rc <= VINF_SUCCESS, ("%Rrc\n", rc)); … … 5267 5267 AssertReturn(pVM->hm.s.pfnHost32ToGuest64R0, VERR_HM_NO_32_TO_64_SWITCHER); 5268 5268 Assert(enmOp > HM64ON32OP_INVALID && enmOp < HM64ON32OP_END); 5269 Assert(pVCpu->hm.s.vmx.V MCSCache.Write.cValidEntries <= RT_ELEMENTS(pVCpu->hm.s.vmx.VMCSCache.Write.aField));5270 Assert(pVCpu->hm.s.vmx.V MCSCache.Read.cValidEntries <= RT_ELEMENTS(pVCpu->hm.s.vmx.VMCSCache.Read.aField));5269 Assert(pVCpu->hm.s.vmx.VmcsBatchCache.Write.cValidEntries <= RT_ELEMENTS(pVCpu->hm.s.vmx.VmcsBatchCache.Write.aField)); 5270 Assert(pVCpu->hm.s.vmx.VmcsBatchCache.Read.cValidEntries <= RT_ELEMENTS(pVCpu->hm.s.vmx.VmcsBatchCache.Read.aField)); 5271 5271 5272 5272 #ifdef VBOX_STRICT 5273 for (uint32_t i = 0; i < pVCpu->hm.s.vmx.V MCSCache.Write.cValidEntries; i++)5274 Assert(hmR0VmxIsValidWriteField(pVCpu->hm.s.vmx.V MCSCache.Write.aField[i]));5275 5276 for (uint32_t i = 0; i <pVCpu->hm.s.vmx.V MCSCache.Read.cValidEntries; i++)5277 Assert(hmR0VmxIsValidReadField(pVCpu->hm.s.vmx.V MCSCache.Read.aField[i]));5273 for (uint32_t i = 0; i < pVCpu->hm.s.vmx.VmcsBatchCache.Write.cValidEntries; i++) 5274 Assert(hmR0VmxIsValidWriteField(pVCpu->hm.s.vmx.VmcsBatchCache.Write.aField[i])); 5275 5276 for (uint32_t i = 0; i <pVCpu->hm.s.vmx.VmcsBatchCache.Read.cValidEntries; i++) 5277 Assert(hmR0VmxIsValidReadField(pVCpu->hm.s.vmx.VmcsBatchCache.Read.aField[i])); 5278 5278 #endif 5279 5279 … … 5343 5343 * @param pVCpu The cross context virtual CPU structure. 5344 5344 */ 5345 DECLASM(int) VMXR0SwitcherStartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVM CSCACHE pCache, PVM pVM, PVMCPU pVCpu)5345 DECLASM(int) VMXR0SwitcherStartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVMXVMCSBATCHCACHE pCache, PVM pVM, PVMCPU pVCpu) 5346 5346 { 5347 5347 NOREF(fResume); … … 5373 5373 aParam[2] = RT_LO_U32(pVCpu->hm.s.vmx.HCPhysVmcs); /* Param 2: VMCS physical address - Lo. */ 5374 5374 aParam[3] = RT_HI_U32(pVCpu->hm.s.vmx.HCPhysVmcs); /* Param 2: VMCS physical address - Hi. */ 5375 aParam[4] = VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.V MCSCache);5375 aParam[4] = VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.VmcsBatchCache); 5376 5376 aParam[5] = 0; 5377 5377 aParam[6] = VM_RC_ADDR(pVM, pVM); … … 5400 5400 AssertMsg(pCache->TestIn.pCache == pCache->TestOut.pCache, ("%RGv vs %RGv\n", pCache->TestIn.pCache, 5401 5401 pCache->TestOut.pCache)); 5402 AssertMsg(pCache->TestIn.pCache == VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.V MCSCache),5403 ("%RGv vs %RGv\n", pCache->TestIn.pCache, VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.V MCSCache)));5402 AssertMsg(pCache->TestIn.pCache == VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.VmcsBatchCache), 5403 ("%RGv vs %RGv\n", pCache->TestIn.pCache, VM_RC_ADDR(pVM, &pVM->aCpus[pVCpu->idCpu].hm.s.vmx.VmcsBatchCache))); 5404 5404 AssertMsg(pCache->TestIn.pCtx == pCache->TestOut.pCtx, ("%RGv vs %RGv\n", pCache->TestIn.pCtx, 5405 5405 pCache->TestOut.pCtx)); … … 5432 5432 } while (0) 5433 5433 5434 PVM CSCACHE pCache = &pVCpu->hm.s.vmx.VMCSCache;5434 PVMXVMCSBATCHCACHE pCache = &pVCpu->hm.s.vmx.VmcsBatchCache; 5435 5435 uint32_t cReadFields = 0; 5436 5436 … … 5612 5612 { 5613 5613 AssertPtr(pVCpu); 5614 PVM CSCACHE pCache = &pVCpu->hm.s.vmx.VMCSCache;5615 5616 AssertMsgReturn(pCache->Write.cValidEntries < VM CSCACHE_MAX_ENTRY - 1,5614 PVMXVMCSBATCHCACHE pCache = &pVCpu->hm.s.vmx.VmcsBatchCache; 5615 5616 AssertMsgReturn(pCache->Write.cValidEntries < VMX_VMCS_BATCH_CACHE_MAX_ENTRY - 1, 5617 5617 ("entries=%u\n", pCache->Write.cValidEntries), VERR_ACCESS_DENIED); 5618 5618
Note:
See TracChangeset
for help on using the changeset viewer.