aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/svm.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 6b0d5fa5bab3..8a2118b09fd2 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1081,6 +1081,11 @@ static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1081 return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port); 1081 return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port);
1082} 1082}
1083 1083
1084static int nmi_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1085{
1086 return 1;
1087}
1088
1084static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) 1089static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1085{ 1090{
1086 return 1; 1091 return 1;
@@ -1365,7 +1370,7 @@ static int (*svm_exit_handlers[])(struct vcpu_svm *svm,
1365 [SVM_EXIT_EXCP_BASE + NM_VECTOR] = nm_interception, 1370 [SVM_EXIT_EXCP_BASE + NM_VECTOR] = nm_interception,
1366 [SVM_EXIT_EXCP_BASE + MC_VECTOR] = mc_interception, 1371 [SVM_EXIT_EXCP_BASE + MC_VECTOR] = mc_interception,
1367 [SVM_EXIT_INTR] = nop_on_interception, 1372 [SVM_EXIT_INTR] = nop_on_interception,
1368 [SVM_EXIT_NMI] = nop_on_interception, 1373 [SVM_EXIT_NMI] = nmi_interception,
1369 [SVM_EXIT_SMI] = nop_on_interception, 1374 [SVM_EXIT_SMI] = nop_on_interception,
1370 [SVM_EXIT_INIT] = nop_on_interception, 1375 [SVM_EXIT_INIT] = nop_on_interception,
1371 [SVM_EXIT_VINTR] = interrupt_window_interception, 1376 [SVM_EXIT_VINTR] = interrupt_window_interception,