VirtualBox

Changeset 47054 in vbox


Ignore:
Timestamp:
Jul 9, 2013 12:49:31 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Fix TPR patching case to properly resync the changed TPR on next VM reentry.

File:
1 edited

Legend:

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

    r46942 r47054  
    27552755                int rc = PDMApicSetTPR(pVCpu, (pMixedCtx->msrLSTAR & 0xff));
    27562756                AssertRC(rc);
     2757                pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_SVM_GUEST_APIC_STATE;
    27572758            }
    27582759            else if (pSvmTransient->u8GuestTpr != pVmcb->ctrl.IntCtrl.n.u8VTPR)
     
    33133314                int rc2 = PDMApicSetTPR(pVCpu, u8Tpr);
    33143315                AssertRC(rc2);
     3316                pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_SVM_GUEST_APIC_STATE;
     3317
    33153318                pCtx->rip += pPatch->cbOp;
    33163319                break;
     
    38043807                int rc2 = PDMApicSetTPR(pVCpu, pCtx->eax & 0xff);
    38053808                AssertRC(rc2);
     3809                pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_SVM_GUEST_APIC_STATE;
    38063810            }
    38073811            pCtx->rip += 2;     /* Hardcoded opcode, AMD-V doesn't give us this information. */
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