Changeset 9853 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Jun 20, 2008 1:09:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWACCMR0A.asm
r9817 r9853 77 77 78 78 ; Save a guest and load the corresponding host MSR (trashes rdx & rcx) 79 ; Only really useful for gs kernel base as that one can be changed behind our back (swapgs) 80 %macro LOADHOSTMSREX 2 81 mov rcx, %1 82 rdmsr 83 mov qword [xSI + %2], rax 84 pop rax 85 pop rdx 86 wrmsr 87 %endmacro 88 89 ; Load the corresponding host MSR (trashes rdx & rcx) 79 90 %macro LOADHOSTMSR 1 80 91 mov rcx, %1 … … 566 577 ; Restore the host LSTAR, CSTAR, SFMASK & KERNEL_GSBASE MSRs 567 578 ; @todo use the automatic load feature for MSRs 568 LOADHOSTMSR MSR_K8_KERNEL_GS_BASE579 LOADHOSTMSREX MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 569 580 LOADHOSTMSR MSR_K8_SF_MASK 570 581 LOADHOSTMSR MSR_K8_CSTAR … … 599 610 ; Restore the host LSTAR, CSTAR, SFMASK & KERNEL_GSBASE MSRs 600 611 ; @todo use the automatic load feature for MSRs 601 LOADHOSTMSR MSR_K8_KERNEL_GS_BASE612 LOADHOSTMSREX MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 602 613 LOADHOSTMSR MSR_K8_SF_MASK 603 614 LOADHOSTMSR MSR_K8_CSTAR … … 626 637 ; Restore the host LSTAR, CSTAR, SFMASK & KERNEL_GSBASE MSRs 627 638 ; @todo use the automatic load feature for MSRs 628 LOADHOSTMSR MSR_K8_KERNEL_GS_BASE639 LOADHOSTMSREX MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 629 640 LOADHOSTMSR MSR_K8_SF_MASK 630 641 LOADHOSTMSR MSR_K8_CSTAR
Note:
See TracChangeset
for help on using the changeset viewer.