Changeset 92560 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 23, 2021 10:07:54 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin.cpp
r92541 r92560 404 404 * Internal Functions * 405 405 *********************************************************************************************************************************/ 406 static void vmxHCImportGuestIntrState(PVMCPUCC pVCpu, PCVMXVMCSINFO pVmcsInfo); 406 407 407 408 /** … … 823 824 fWhat &= pVCpu->cpum.GstCtx.fExtrn; 824 825 826 if (fWhat & (CPUMCTX_EXTRN_INHIBIT_INT | CPUMCTX_EXTRN_INHIBIT_NMI)) 827 vmxHCImportGuestIntrState(pVCpu, &pVCpu->nem.s.VmcsInfo); 828 825 829 /* GPRs */ 826 830 hv_return_t hrc; … … 2150 2154 static int nemR3DarwinVmxSetupVmcsProcCtls(PVMCPUCC pVCpu, PVMXVMCSINFO pVmcsInfo) 2151 2155 { 2152 PVMCC pVM = pVCpu->CTX_SUFF(pVM);2153 2156 uint32_t fVal = g_HmMsrs.u.vmx.ProcCtls.n.allowed0; /* Bits set here must be set in the VMCS. */ 2154 2157 uint32_t const fZap = g_HmMsrs.u.vmx.ProcCtls.n.allowed1; /* Bits cleared here must be cleared in the VMCS. */ … … 2521 2524 * @param pVM The VM handle. 2522 2525 * @param pVCpu The vCPU handle. 2523 * @param idCpu ID of the CPU to create. 2524 */ 2525 static DECLCALLBACK(int) nemR3DarwinNativeInitTprShadowing(PVM pVM, PVMCPU pVCpu, VMCPUID idCpu) 2526 */ 2527 static DECLCALLBACK(int) nemR3DarwinNativeInitTprShadowing(PVM pVM, PVMCPU pVCpu) 2526 2528 { 2527 2529 PVMXVMCSINFO pVmcsInfo = &pVCpu->nem.s.VmcsInfo; … … 2598 2600 PVMCPU pVCpu = pVM->apCpusR3[idCpu]; 2599 2601 2600 int rc = VMR3ReqCallWait(pVM, idCpu, (PFNRT)nemR3DarwinNativeInitTprShadowing, 3, pVM, pVCpu, idCpu);2602 int rc = VMR3ReqCallWait(pVM, idCpu, (PFNRT)nemR3DarwinNativeInitTprShadowing, 2, pVM, pVCpu); 2601 2603 if (RT_FAILURE(rc)) 2602 return VMSetError(pVM, VERR_NEM_VM_CREATE_FAILED, RT_SRC_POS, " Call to hv_vcpu_createfailed: %Rrc", rc);2604 return VMSetError(pVM, VERR_NEM_VM_CREATE_FAILED, RT_SRC_POS, "Setting up TPR shadowing failed: %Rrc", rc); 2603 2605 } 2604 2606 } … … 2879 2881 { 2880 2882 /* Try anticipate what we might need. */ 2881 uint64_t fImport = IEM_CPUMCTX_EXTRN_MUST_MASK;2883 uint64_t fImport = NEM_DARWIN_CPUMCTX_EXTRN_MASK_FOR_IEM; 2882 2884 if ( (rcStrict >= VINF_EM_FIRST && rcStrict <= VINF_EM_LAST) 2883 2885 || RT_FAILURE(rcStrict))
Note:
See TracChangeset
for help on using the changeset viewer.