Changeset 92456 in vbox
- Timestamp:
- Nov 16, 2021 11:10:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin.cpp
r92453 r92456 2433 2433 static DECLCALLBACK(int) nemR3DarwinNativeTermVCpuOnEmt(PVMCPU pVCpu) 2434 2434 { 2435 hv_return_t hrc = hv_vcpu_destroy(pVCpu->nem.s.hVCpuId); 2435 hv_return_t hrc = hv_vcpu_set_space(pVCpu->nem.s.hVCpuId, 0 /*asid*/); 2436 Assert(hrc == HV_SUCCESS); 2437 2438 hrc = hv_vcpu_destroy(pVCpu->nem.s.hVCpuId); 2436 2439 Assert(hrc == HV_SUCCESS); RT_NOREF(hrc); 2437 2440 return VINF_SUCCESS; … … 2492 2495 { 2493 2496 PVMCPU pVCpu = pVM->apCpusR3[idCpu]; 2497 2498 /* 2499 * Need to do this or hv_vm_space_destroy() fails later on (on 10.15 at least). Could've been documented in 2500 * API reference so I wouldn't have to decompile the kext to find this out but we are talking 2501 * about Apple here unfortunately, API documentation is not their strong suit... 2502 * Would have been of course even better to just automatically drop the address space reference when the vCPU 2503 * gets destroyed. 2504 */ 2505 hv_return_t hrc = hv_vcpu_set_space(pVCpu->nem.s.hVCpuId, 0 /*asid*/); 2506 Assert(hrc == HV_SUCCESS); 2494 2507 2495 2508 /* … … 2501 2514 * from EMT(0) as well. 2502 2515 */ 2503 h v_return_t hrc = hv_vcpu_destroy(pVCpu->nem.s.hVCpuId);2516 hrc = hv_vcpu_destroy(pVCpu->nem.s.hVCpuId); 2504 2517 Assert(hrc == HV_SUCCESS); RT_NOREF(hrc); 2505 2518
Note:
See TracChangeset
for help on using the changeset viewer.