Changeset 103374 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Feb 14, 2024 10:10:00 PM (11 months ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/DBGFStack.cpp
r102559 r103374 848 848 else 849 849 { 850 PVMCPU pVCpu = VMMGetCpuById(pUVM->pVM, idCpu);851 CPUMMODE enmCpuMode = CPUMGetGuestMode(pVCpu);850 PVMCPU const pVCpu = pUVM->pVM->apCpusR3[idCpu]; 851 CPUMMODE const enmCpuMode = CPUMGetGuestMode(pVCpu); 852 852 if (enmCpuMode == CPUMMODE_REAL) 853 853 { … … 1029 1029 { 1030 1030 case DBGFCODETYPE_GUEST: 1031 pCtx = CPUMQueryGuestCtxPtr( VMMGetCpuById(pVM, idCpu));1031 pCtx = CPUMQueryGuestCtxPtr(pVM->apCpusR3[idCpu]); 1032 1032 hAs = DBGF_AS_GLOBAL; 1033 1033 break; 1034 1034 case DBGFCODETYPE_HYPER: 1035 pCtx = CPUMQueryGuestCtxPtr( VMMGetCpuById(pVM, idCpu));1035 pCtx = CPUMQueryGuestCtxPtr(pVM->apCpusR3[idCpu]); 1036 1036 hAs = DBGF_AS_RC_AND_GC_GLOBAL; 1037 1037 break; -
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r100101 r103374 1296 1296 1297 1297 #if defined(VBOX_VMM_TARGET_ARMV8) 1298 1298 1299 /** 1299 1300 * VCPU worker for VMMR3CpuOn. … … 1306 1307 static DECLCALLBACK(int) vmmR3CpuOn(PVM pVM, VMCPUID idCpu, RTGCPHYS GCPhysExecAddr, uint64_t u64CtxId) 1307 1308 { 1308 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);1309 PVMCPU pVCpu = pVM->apCpusR3[idCpu]; 1309 1310 VMCPU_ASSERT_EMT(pVCpu); 1310 1311 … … 1346 1347 AssertRC(rc); 1347 1348 } 1348 #else 1349 1350 #else /* !VBOX_VMM_TARGET_ARMV8 */ 1351 1349 1352 /** 1350 1353 * VCPU worker for VMMR3SendStartupIpi. … … 1356 1359 static DECLCALLBACK(int) vmmR3SendStartupIpi(PVM pVM, VMCPUID idCpu, uint32_t uVector) 1357 1360 { 1358 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);1361 PVMCPU pVCpu = pVM->apCpusR3[idCpu]; 1359 1362 VMCPU_ASSERT_EMT(pVCpu); 1360 1363 … … 1411 1414 static DECLCALLBACK(int) vmmR3SendInitIpi(PVM pVM, VMCPUID idCpu) 1412 1415 { 1413 PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);1416 PVMCPU pVCpu = pVM->apCpusR3[idCpu]; 1414 1417 VMCPU_ASSERT_EMT(pVCpu); 1415 1418 … … 1420 1423 1421 1424 /* If the CPU is in VMX non-root mode, INIT signals cause VM-exits. */ 1422 # ifdef VBOX_WITH_NESTED_HWVIRT_VMX1425 # ifdef VBOX_WITH_NESTED_HWVIRT_VMX 1423 1426 PCCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVCpu); 1424 1427 if (CPUMIsGuestInVmxNonRootMode(pCtx)) 1425 1428 return VBOXSTRICTRC_TODO(IEMExecVmxVmexit(pVCpu, VMX_EXIT_INIT_SIGNAL, 0 /* uExitQual */)); 1426 # endif1429 # endif 1427 1430 1428 1431 /** @todo Figure out how to handle a SVM nested-guest intercepts here for INIT … … 1431 1434 PGMR3ResetCpu(pVM, pVCpu); 1432 1435 PDMR3ResetCpu(pVCpu); /* Only clears pending interrupts force flags */ 1433 # if !defined(VBOX_VMM_TARGET_ARMV8)1436 # if !defined(VBOX_VMM_TARGET_ARMV8) 1434 1437 APICR3InitIpi(pVCpu); 1435 # endif1438 # endif 1436 1439 TRPMR3ResetCpu(pVCpu); 1437 1440 CPUMR3ResetCpu(pVM, pVCpu); … … 1475 1478 AssertRC(rc); 1476 1479 } 1477 #endif 1478 1480 1481 #endif /* !VBOX_VMM_TARGET_ARMV8 */ 1479 1482 1480 1483 /**
Note:
See TracChangeset
for help on using the changeset viewer.