diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 1a582f1090e8..ff3bc74af728 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -403,6 +403,9 @@ static __init int svm_hardware_setup(void) | |||
403 | set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_ESP, 1, 1); | 403 | set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_ESP, 1, 1); |
404 | set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_EIP, 1, 1); | 404 | set_msr_interception(msrpm_va, MSR_IA32_SYSENTER_EIP, 1, 1); |
405 | 405 | ||
406 | if (boot_cpu_has(X86_FEATURE_NX)) | ||
407 | kvm_enable_efer_bits(EFER_NX); | ||
408 | |||
406 | for_each_online_cpu(cpu) { | 409 | for_each_online_cpu(cpu) { |
407 | r = svm_cpu_init(cpu); | 410 | r = svm_cpu_init(cpu); |
408 | if (r) | 411 | if (r) |