Changeset 22063 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 7, 2009 12:26:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r22060 r22063 522 522 vmxR0SetMSRPermission(pVCpu, MSR_IA32_SYSENTER_ESP, true, true); 523 523 vmxR0SetMSRPermission(pVCpu, MSR_IA32_SYSENTER_EIP, true, true); 524 525 /* Long mode supported? */ 526 if (CPUMGetGuestCpuIdFeature(pVM, CPUMCPUIDFEATURE_LONG_MODE)) 527 { 528 /* Allow the guest to directly modify these MSRs; they are restored and saved automatically. */ 529 vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, true); 530 vmxR0SetMSRPermission(pVCpu, MSR_K6_STAR, true, true); 531 vmxR0SetMSRPermission(pVCpu, MSR_K8_SF_MASK, true, true); 532 vmxR0SetMSRPermission(pVCpu, MSR_K8_KERNEL_GS_BASE, true, true); 533 vmxR0SetMSRPermission(pVCpu, MSR_K8_GS_BASE, true, true); 534 vmxR0SetMSRPermission(pVCpu, MSR_K8_FS_BASE, true, true); 535 } 524 vmxR0SetMSRPermission(pVCpu, MSR_K8_LSTAR, true, true); 525 vmxR0SetMSRPermission(pVCpu, MSR_K6_STAR, true, true); 526 vmxR0SetMSRPermission(pVCpu, MSR_K8_SF_MASK, true, true); 527 vmxR0SetMSRPermission(pVCpu, MSR_K8_KERNEL_GS_BASE, true, true); 528 vmxR0SetMSRPermission(pVCpu, MSR_K8_GS_BASE, true, true); 529 vmxR0SetMSRPermission(pVCpu, MSR_K8_FS_BASE, true, true); 536 530 } 537 531
Note:
See TracChangeset
for help on using the changeset viewer.