Changeset 75828 in vbox for trunk/src/VBox
- Timestamp:
- Nov 30, 2018 8:26:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r75822 r75828 7837 7837 * @sa hmR0VmxIsMesaDrvGp 7838 7838 */ 7839 DECLINLINE(bool) hmR0SvmIsMesaDrvGp(PVMCPU pVCpu, P SVMTRANSIENT pSvmTransient, PCPUMCTX pCtx, PCSVMVMCB pVmcb)7839 DECLINLINE(bool) hmR0SvmIsMesaDrvGp(PVMCPU pVCpu, PCPUMCTX pCtx, PCSVMVMCB pVmcb) 7840 7840 { 7841 7841 /* Check magic and port. */ … … 7848 7848 7849 7849 /* Check that it is #GP(0). */ 7850 if (p SvmTransient->u64ExitCode!= 0)7850 if (pVmcb->ctrl.u64ExitInfo1 != 0) 7851 7851 return false; 7852 7852 … … 7898 7898 PCPUMCTX pCtx = &pVCpu->cpum.GstCtx; 7899 7899 if ( !pVCpu->hm.s.fTrapXcptGpForLovelyMesaDrv 7900 || hmR0SvmIsMesaDrvGp(pVCpu, pSvmTransient, pCtx, pVmcb))7900 || !hmR0SvmIsMesaDrvGp(pVCpu, pCtx, pVmcb)) 7901 7901 { 7902 7902 SVMEVENT Event; … … 7906 7906 Event.n.u8Vector = X86_XCPT_GP; 7907 7907 Event.n.u1ErrorCodeValid = 1; 7908 Event.n.u32ErrorCode = (uint32_t)p SvmTransient->u64ExitCode;7908 Event.n.u32ErrorCode = (uint32_t)pVmcb->ctrl.u64ExitInfo1; 7909 7909 hmR0SvmSetPendingEvent(pVCpu, &Event, 0 /* GCPtrFaultAddress */); 7910 7910 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.