Changeset 99208 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Mar 29, 2023 2:13:56 PM (21 months ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r99051 r99208 854 854 * @callback_method_impl{FNDISREADBYTES} 855 855 */ 856 static DECLCALLBACK(int) emReadBytes(PDIS CPUSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead)856 static DECLCALLBACK(int) emReadBytes(PDISSTATE pDis, uint8_t offInstr, uint8_t cbMinRead, uint8_t cbMaxRead) 857 857 { 858 858 PVMCPUCC pVCpu = (PVMCPUCC)pDis->pvUser; … … 911 911 * @param pcbInstr Where to return the instruction size. (optional) 912 912 */ 913 VMM_INT_DECL(int) EMInterpretDisasCurrent(PVMCPUCC pVCpu, PDIS CPUSTATE pDis, unsigned *pcbInstr)913 VMM_INT_DECL(int) EMInterpretDisasCurrent(PVMCPUCC pVCpu, PDISSTATE pDis, unsigned *pcbInstr) 914 914 { 915 915 #if defined(VBOX_VMM_TARGET_ARMV8) … … 947 947 * @param pcbInstr Where to return the instruction size. (optional) 948 948 */ 949 VMM_INT_DECL(int) EMInterpretDisasOneEx(PVMCPUCC pVCpu, RTGCUINTPTR GCPtrInstr, PDIS CPUSTATE pDis, unsigned *pcbInstr)949 VMM_INT_DECL(int) EMInterpretDisasOneEx(PVMCPUCC pVCpu, RTGCUINTPTR GCPtrInstr, PDISSTATE pDis, unsigned *pcbInstr) 950 950 { 951 951 DISCPUMODE enmCpuMode = CPUMGetGuestDisMode(pVCpu); … … 994 994 995 995 /** 996 * Interprets the current instruction using the supplied DIS CPUSTATE structure.996 * Interprets the current instruction using the supplied DISSTATE structure. 997 997 * 998 998 * IP/EIP/RIP *IS* updated! … … 1017 1017 * Make sure this can't happen!! (will add some assertions/checks later) 1018 1018 */ 1019 VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPUCC pVCpu, PDIS CPUSTATE pDis, uint64_t rip)1019 VMM_INT_DECL(VBOXSTRICTRC) EMInterpretInstructionDisasState(PVMCPUCC pVCpu, PDISSTATE pDis, uint64_t rip) 1020 1020 { 1021 1021 LogFlow(("EMInterpretInstructionDisasState %RGv\n", (RTGCPTR)rip)); -
trunk/src/VBox/VMM/VMMAll/GCMAll.cpp
r98103 r99208 35 35 #include <VBox/vmm/vmcc.h> 36 36 37 #include <VBox/dis.h> /* For DIS CPUSTATE */37 #include <VBox/dis.h> /* For DISSTATE */ 38 38 #include <iprt/errcore.h> 39 39 #include <iprt/string.h> … … 113 113 * @thread EMT(pVCpu). 114 114 */ 115 VMM_INT_DECL(VBOXSTRICTRC) GCMXcptDE(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDIS CPUSTATE pDis, uint8_t *pcbInstr)115 VMM_INT_DECL(VBOXSTRICTRC) GCMXcptDE(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr) 116 116 { 117 117 PVMCC pVM = pVCpu->CTX_SUFF(pVM); -
trunk/src/VBox/VMM/VMMAll/GIMAll.cpp
r99051 r99208 36 36 #include <VBox/vmm/vmcc.h> 37 37 38 #include <VBox/dis.h> /* For DIS CPUSTATE */38 #include <VBox/dis.h> /* For DISSTATE */ 39 39 #include <VBox/err.h> 40 40 #include <iprt/string.h> … … 249 249 return VERR_GIM_NOT_ENABLED; 250 250 251 unsigned 252 DIS CPUSTATE Dis;251 unsigned cbInstr; 252 DISSTATE Dis; 253 253 int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr); 254 254 if (RT_SUCCESS(rc)) … … 363 363 * @thread EMT(pVCpu). 364 364 */ 365 VMM_INT_DECL(VBOXSTRICTRC) GIMXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDIS CPUSTATE pDis, uint8_t *pcbInstr)365 VMM_INT_DECL(VBOXSTRICTRC) GIMXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr) 366 366 { 367 367 PVMCC pVM = pVCpu->CTX_SUFF(pVM); -
trunk/src/VBox/VMM/VMMAll/GIMAllHv.cpp
r98103 r99208 1461 1461 * @thread EMT(pVCpu). 1462 1462 */ 1463 VMM_INT_DECL(VBOXSTRICTRC) gimHvXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDIS CPUSTATE pDis, uint8_t *pcbInstr)1463 VMM_INT_DECL(VBOXSTRICTRC) gimHvXcptUD(PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr) 1464 1464 { 1465 1465 VMCPU_ASSERT_EMT(pVCpu); … … 1477 1477 * or the AMD VMMCALL instruction and if so, handle it as a hypercall. 1478 1478 */ 1479 unsigned 1480 DIS CPUSTATE Dis;1479 unsigned cbInstr; 1480 DISSTATE Dis; 1481 1481 int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr); 1482 1482 if (RT_SUCCESS(rc)) -
trunk/src/VBox/VMM/VMMAll/GIMAllKvm.cpp
r98103 r99208 420 420 * @thread EMT(pVCpu). 421 421 */ 422 VMM_INT_DECL(VBOXSTRICTRC) gimKvmXcptUD(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDIS CPUSTATE pDis, uint8_t *pcbInstr)422 VMM_INT_DECL(VBOXSTRICTRC) gimKvmXcptUD(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, uint8_t *pcbInstr) 423 423 { 424 424 VMCPU_ASSERT_EMT(pVCpu); … … 432 432 if (!pDis) 433 433 { 434 unsigned 435 DIS CPUSTATE Dis;434 unsigned cbInstr; 435 DISSTATE Dis; 436 436 int rc = EMInterpretDisasCurrent(pVCpu, &Dis, &cbInstr); 437 437 if (RT_SUCCESS(rc)) -
trunk/src/VBox/VMM/VMMAll/PGMAllPhys.cpp
r98572 r99208 222 222 * we will simply skip it. Otherwise we'll have to defer it to REM. 223 223 */ 224 uint32_t 225 PDIS CPUSTATE pDis = &pVCpu->pgm.s.DisState;224 uint32_t cbOp; 225 PDISSTATE pDis = &pVCpu->pgm.s.Dis; 226 226 rc = EMInterpretDisasCurrent(pVCpu, pDis, &cbOp); 227 227 if ( RT_SUCCESS(rc) -
trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp
r99132 r99208 727 727 * @param offFault The access offset. 728 728 */ 729 DECLINLINE(bool) pgmRZPoolMonitorIsForking(PPGMPOOL pPool, PDIS CPUSTATE pDis, unsigned offFault)729 DECLINLINE(bool) pgmRZPoolMonitorIsForking(PPGMPOOL pPool, PDISSTATE pDis, unsigned offFault) 730 730 { 731 731 /* … … 771 771 * @remark The REP prefix check is left to the caller because of STOSD/W. 772 772 */ 773 DECLINLINE(bool) pgmRZPoolMonitorIsReused(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDIS CPUSTATE pDis, RTGCPTR pvFault,773 DECLINLINE(bool) pgmRZPoolMonitorIsReused(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTX pCtx, PDISSTATE pDis, RTGCPTR pvFault, 774 774 PPGMPOOLPAGE pPage) 775 775 { … … 885 885 * @todo VBOXSTRICTRC 886 886 */ 887 static int pgmRZPoolAccessPfHandlerFlush(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDIS CPUSTATE pDis,887 static int pgmRZPoolAccessPfHandlerFlush(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis, 888 888 PCPUMCTX pCtx, RTGCPHYS GCPhysFault) 889 889 { … … 937 937 * @param pvFault The fault address. 938 938 */ 939 DECLINLINE(int) pgmRZPoolAccessPfHandlerSTOSD(PVMCC pVM, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDIS CPUSTATE pDis,939 DECLINLINE(int) pgmRZPoolAccessPfHandlerSTOSD(PVMCC pVM, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis, 940 940 PCPUMCTX pCtx, RTGCPHYS GCPhysFault, RTGCPTR pvFault) 941 941 { … … 999 999 * @param pfReused Reused state (in/out) 1000 1000 */ 1001 DECLINLINE(int) pgmRZPoolAccessPfHandlerSimple(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDIS CPUSTATE pDis,1001 DECLINLINE(int) pgmRZPoolAccessPfHandlerSimple(PVMCC pVM, PVMCPUCC pVCpu, PPGMPOOL pPool, PPGMPOOLPAGE pPage, PDISSTATE pDis, 1002 1002 PCPUMCTX pCtx, RTGCPHYS GCPhysFault, bool *pfReused) 1003 1003 { … … 1150 1150 * Disassemble the faulting instruction. 1151 1151 */ 1152 PDIS CPUSTATE pDis = &pVCpu->pgm.s.DisState;1152 PDISSTATE pDis = &pVCpu->pgm.s.Dis; 1153 1153 int rc = EMInterpretDisasCurrent(pVCpu, pDis, NULL); 1154 1154 if (RT_UNLIKELY(rc != VINF_SUCCESS))
Note:
See TracChangeset
for help on using the changeset viewer.