- Timestamp:
- Oct 23, 2009 12:17:23 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r23553 r24027 83 83 #endif 84 84 85 uint64_t val = ASMRdMsr(MSR_K6_EFER); 86 if (val & MSR_K6_EFER_SVME) 87 return VERR_SVM_IN_USE; 88 85 89 /* Turn on AMD-V in the EFER MSR. */ 86 uint64_t val = ASMRdMsr(MSR_K6_EFER); 87 if (!(val & MSR_K6_EFER_SVME)) 88 ASMWrMsr(MSR_K6_EFER, val | MSR_K6_EFER_SVME); 90 ASMWrMsr(MSR_K6_EFER, val | MSR_K6_EFER_SVME); 89 91 90 92 /* Write the physical page address where the CPU will store the host state while executing the VM. */ -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r23983 r24027 123 123 * (which can have very bad consequences!!!) 124 124 */ 125 126 if (ASMGetCR4() & X86_CR4_VMXE)) 127 return VERR_VMX_IN_VMX_ROOT_MODE; 125 128 126 129 /* Make sure the VMX instructions don't cause #UD faults. */
Note:
See TracChangeset
for help on using the changeset viewer.