VirtualBox

Changeset 24251 in vbox


Ignore:
Timestamp:
Nov 2, 2009 1:13:37 PM (15 years ago)
Author:
vboxsync
Message:

Another tpr patch fix

File:
1 edited

Legend:

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

    r24249 r24251  
    22592259    RTGCUINTPTR errCode, instrInfo;
    22602260    bool        fSetupTPRCaching = false;
    2261     bool        fRestoreLSTAR = false;
    22622261    uint64_t    u64LSTAR = 0;
    22632262    uint8_t     u8LastTPR = 0;
     
    25032502                /* A TPR change could activate a pending interrupt, so catch lstar writes. */
    25042503                vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, false);
    2505                 fRestoreLSTAR = false;
    25062504            }
    25072505            else
     
    25112509                 */
    25122510                vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, true);
    2513 
    2514                 /* Must save the host LSTAR msr to restore it later. */
    2515                 fRestoreLSTAR = true;
    25162511            }
    25172512        }
     
    26142609
    26152610    /* Save the current TPR value in the LSTAR msr so our patches can access it. */
    2616     if (fRestoreLSTAR)
     2611    if (pVM->hwaccm.s.fTPRPatchingActive)
    26172612    {
    26182613        Assert(pVM->hwaccm.s.fTPRPatchingActive);
     
    26382633
    26392634    /* Restore the host LSTAR msr if the guest could have changed it. */
    2640     if (fRestoreLSTAR)
     2635    if (pVM->hwaccm.s.fTPRPatchingActive)
    26412636    {
    26422637        Assert(pVM->hwaccm.s.fTPRPatchingActive);
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