VirtualBox

Changeset 9988 in vbox


Ignore:
Timestamp:
Jun 27, 2008 11:17:47 AM (17 years ago)
Author:
vboxsync
Message:

Unconditionally update the sysenter msrs.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r9897 r9988  
    570570
    571571    /*
    572      * Sysenter MSRs
     572     * Sysenter MSRs (unconditional)
    573573     */
    574     if (pVM->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_SYSENTER_MSR)
    575     {
    576         pVMCB->guest.u64SysEnterCS  = pCtx->SysEnter.cs;
    577         pVMCB->guest.u64SysEnterEIP = pCtx->SysEnter.eip;
    578         pVMCB->guest.u64SysEnterESP = pCtx->SysEnter.esp;
    579     }
     574    pVMCB->guest.u64SysEnterCS  = pCtx->SysEnter.cs;
     575    pVMCB->guest.u64SysEnterEIP = pCtx->SysEnter.eip;
     576    pVMCB->guest.u64SysEnterESP = pCtx->SysEnter.esp;
    580577
    581578    /* Control registers */
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r9964 r9988  
    753753
    754754    /*
    755      * Sysenter MSRs
     755     * Sysenter MSRs (unconditional)
    756756     */
    757     if (pVM->hwaccm.s.fContextUseFlags & HWACCM_CHANGED_GUEST_SYSENTER_MSR)
    758     {
    759         rc  = VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_CS,      pCtx->SysEnter.cs);
    760         rc |= VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_EIP,     pCtx->SysEnter.eip);
    761         rc |= VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_ESP,     pCtx->SysEnter.esp);
    762         AssertRC(rc);
    763     }
     757    rc  = VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_CS,      pCtx->SysEnter.cs);
     758    rc |= VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_EIP,     pCtx->SysEnter.eip);
     759    rc |= VMXWriteVMCS(VMX_VMCS_GUEST_SYSENTER_ESP,     pCtx->SysEnter.esp);
     760    AssertRC(rc);
    764761
    765762    /* Control registers */
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