VirtualBox

Changeset 22079 in vbox for trunk/src/VBox/VMM/VMMGC


Ignore:
Timestamp:
Aug 7, 2009 4:26:25 PM (15 years ago)
Author:
vboxsync
Message:

Back to manual msr save and restore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/HWACCMGCA.asm

    r22040 r22079  
    232232    ; *
    233233    ; */
     234
     235    ; Load the guest LSTAR, CSTAR, SFMASK & KERNEL_GSBASE MSRs
     236    ;; @todo use the automatic load feature for MSRs
     237    LOADGUESTMSR MSR_K8_LSTAR,          CPUMCTX.msrLSTAR
     238%if 0  ; not supported on Intel CPUs
     239    LOADGUESTMSR MSR_K8_CSTAR,          CPUMCTX.msrCSTAR
     240%endif
     241    LOADGUESTMSR MSR_K6_STAR,           CPUMCTX.msrSTAR
     242    LOADGUESTMSR MSR_K8_SF_MASK,        CPUMCTX.msrSFMASK
     243    LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE
     244
    234245%ifdef VBOX_WITH_CRASHDUMP_MAGIC
    235246    mov     qword [rbx + VMCSCACHE.uPos], 5
     
    297308
    298309    pop     rsi         ; pCtx (needed in rsi by the macros below)
     310
     311    ;; @todo use the automatic load feature for MSRs
     312    SAVEGUESTMSR MSR_K8_LSTAR,          CPUMCTX.msrLSTAR
     313%if 0  ; not supported on Intel CPUs
     314    SAVEGUESTMSR MSR_K8_CSTAR,          CPUMCTX.msrCSTAR
     315%endif
     316    SAVEGUESTMSR MSR_K6_STAR,           CPUMCTX.msrSTAR
     317    SAVEGUESTMSR MSR_K8_SF_MASK,        CPUMCTX.msrSFMASK
     318    SAVEGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE
    299319
    300320%ifdef VMX_USE_CACHED_VMCS_ACCESSES
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