Changeset 45862 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 1, 2013 11:13:25 AM (12 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMR0Mixed.mac
r45845 r45862 421 421 LOADGUESTMSR MSR_K8_SF_MASK, CPUMCTX.msrSFMASK 422 422 LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 423 %else 424 %ifdef VBOX_WITH_OLD_VTX_CODE 425 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 426 LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 427 %endif 423 428 %endif 424 429 … … 561 566 LOADHOSTMSREX MSR_K6_STAR, CPUMCTX.msrSTAR 562 567 LOADHOSTMSREX MSR_K8_LSTAR, CPUMCTX.msrLSTAR 568 %else 569 %ifdef VBOX_WITH_OLD_VTX_CODE 570 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 571 LOADHOSTMSREX MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 572 %endif 563 573 %endif 564 574 … … 632 642 LOADHOSTMSR MSR_K6_STAR 633 643 LOADHOSTMSR MSR_K8_LSTAR 644 %else 645 %ifdef VBOX_WITH_OLD_VTX_CODE 646 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 647 LOADHOSTMSR MSR_K8_KERNEL_GS_BASE 648 %endif 634 649 %endif 635 650 … … 677 692 LOADHOSTMSR MSR_K6_STAR 678 693 LOADHOSTMSR MSR_K8_LSTAR 694 %else 695 %ifdef VBOX_WITH_OLD_VTX_CODE 696 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 697 LOADHOSTMSR MSR_K8_KERNEL_GS_BASE 698 %endif 679 699 %endif 680 700 -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r45845 r45862 1532 1532 pMsr->u64Value = ASMRdMsr(MSR_K8_SF_MASK); /* syscall flag mask */ 1533 1533 pMsr++; idxMsr++; 1534 1535 /* The KERNEL_GS_BASE MSR was previously not workingreliably with auto load/store. See @bugref{6208} */1534 # if 0 1535 /* The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} */ 1536 1536 pMsr->u32IndexMSR = MSR_K8_KERNEL_GS_BASE; 1537 1537 pMsr->u32Reserved = 0; 1538 1538 pMsr->u64Value = ASMRdMsr(MSR_K8_KERNEL_GS_BASE); /* swapgs exchange value */ 1539 1539 pMsr++; idxMsr++; 1540 # endif 1540 1541 } 1541 1542 # endif … … 2386 2387 pMsr->u64Value = pCtx->msrSFMASK; /* syscall flag mask */ 2387 2388 pMsr++; idxMsr++; 2388 2389 /* The KERNEL_GS_BASE MSR was previously not workingreliably with auto load/store. See @bugref{6208} */2389 #if 0 2390 /* The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} */ 2390 2391 pMsr->u32IndexMSR = MSR_K8_KERNEL_GS_BASE; 2391 2392 pMsr->u32Reserved = 0; 2392 2393 pMsr->u64Value = pCtx->msrKERNELGSBASE; /* swapgs exchange value */ 2393 2394 pMsr++; idxMsr++; 2395 #endif 2394 2396 } 2395 2397 } … … 2568 2570 pCtx->msrSFMASK = pMsr->u64Value; 2569 2571 break; 2570 /* The KERNEL_GS_BASE MSR was previously not working reliably with auto load/store. See @bugref{6208} */ 2572 #if 0 2573 /* The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} */ 2571 2574 case MSR_K8_KERNEL_GS_BASE: 2572 2575 pCtx->msrKERNELGSBASE = pMsr->u64Value; 2573 2576 break; 2577 #endif 2574 2578 case MSR_K8_TSC_AUX: 2575 2579 CPUMSetGuestMsr(pVCpu, MSR_K8_TSC_AUX, pMsr->u64Value); -
trunk/src/VBox/VMM/VMMSwitcher/LegacyandAMD64.mac
r45845 r45862 723 723 LOADGUESTMSR MSR_K8_SF_MASK, CPUMCTX.msrSFMASK 724 724 LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 725 %else 726 %ifdef VBOX_WITH_OLD_VTX_CODE 727 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 728 LOADGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 729 %endif 725 730 %endif 726 731 … … 804 809 SAVEGUESTMSR MSR_K6_STAR, CPUMCTX.msrSTAR 805 810 SAVEGUESTMSR MSR_K8_LSTAR, CPUMCTX.msrLSTAR 811 %else 812 %ifdef VBOX_WITH_OLD_VTX_CODE 813 ; The KERNEL_GS_BASE MSR does not work reliably with auto load/store. See @bugref{6208} 814 SAVEGUESTMSR MSR_K8_KERNEL_GS_BASE, CPUMCTX.msrKERNELGSBASE 815 %endif 806 816 %endif 807 817
Note:
See TracChangeset
for help on using the changeset viewer.