Changeset 22050 in vbox
- Timestamp:
- Aug 7, 2009 8:16:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r22049 r22050 1869 1869 pMsr->u64Value = pCtx->msrKERNELGSBASE; /* swapgs exchange value */ 1870 1870 pMsr++; idxMsr++; 1871 } 1872 } 1873 1874 if ( (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_MSR_BITMAPS) 1875 && (ulEdx & X86_CPUID_AMD_FEATURE_EDX_LONG_MODE)) 1876 { 1877 /* Allow the guest to directly modify these MSRs; they are restored and saved automatically. */ 1878 vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, true); 1879 vmxR0SetMSRPermission(pVCpu, MSR_K6_STAR, true, true); 1880 vmxR0SetMSRPermission(pVCpu, MSR_K8_SF_MASK, true, true); 1881 vmxR0SetMSRPermission(pVCpu, MSR_K8_KERNEL_GS_BASE, true, true); 1882 vmxR0SetMSRPermission(pVCpu, MSR_K8_GS_BASE, true, true); 1883 vmxR0SetMSRPermission(pVCpu, MSR_K8_FS_BASE, true, true); 1871 1872 if (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_MSR_BITMAPS) 1873 { 1874 /* Allow the guest to directly modify these MSRs; they are restored and saved automatically. */ 1875 vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, true); 1876 vmxR0SetMSRPermission(pVCpu, MSR_K6_STAR, true, true); 1877 vmxR0SetMSRPermission(pVCpu, MSR_K8_SF_MASK, true, true); 1878 vmxR0SetMSRPermission(pVCpu, MSR_K8_KERNEL_GS_BASE, true, true); 1879 vmxR0SetMSRPermission(pVCpu, MSR_K8_GS_BASE, true, true); 1880 vmxR0SetMSRPermission(pVCpu, MSR_K8_FS_BASE, true, true); 1881 } 1882 } 1884 1883 } 1885 1884
Note:
See TracChangeset
for help on using the changeset viewer.