VirtualBox

Changeset 75828 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 30, 2018 8:26:15 AM (6 years ago)
Author:
vboxsync
Message:

HVMSVMR0: Fixes to mesa hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r75822 r75828  
    78377837 * @sa      hmR0VmxIsMesaDrvGp
    78387838 */
    7839 DECLINLINE(bool) hmR0SvmIsMesaDrvGp(PVMCPU pVCpu, PSVMTRANSIENT pSvmTransient, PCPUMCTX pCtx, PCSVMVMCB pVmcb)
     7839DECLINLINE(bool) hmR0SvmIsMesaDrvGp(PVMCPU pVCpu, PCPUMCTX pCtx, PCSVMVMCB pVmcb)
    78407840{
    78417841    /* Check magic and port. */
     
    78487848
    78497849    /* Check that it is #GP(0). */
    7850     if (pSvmTransient->u64ExitCode != 0)
     7850    if (pVmcb->ctrl.u64ExitInfo1 != 0)
    78517851        return false;
    78527852
     
    78987898    PCPUMCTX pCtx = &pVCpu->cpum.GstCtx;
    78997899    if (   !pVCpu->hm.s.fTrapXcptGpForLovelyMesaDrv
    7900         || hmR0SvmIsMesaDrvGp(pVCpu, pSvmTransient, pCtx, pVmcb))
     7900        || !hmR0SvmIsMesaDrvGp(pVCpu, pCtx, pVmcb))
    79017901    {
    79027902        SVMEVENT Event;
     
    79067906        Event.n.u8Vector         = X86_XCPT_GP;
    79077907        Event.n.u1ErrorCodeValid = 1;
    7908         Event.n.u32ErrorCode     = (uint32_t)pSvmTransient->u64ExitCode;
     7908        Event.n.u32ErrorCode     = (uint32_t)pVmcb->ctrl.u64ExitInfo1;
    79097909        hmR0SvmSetPendingEvent(pVCpu, &Event, 0 /* GCPtrFaultAddress */);
    79107910        return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette