diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/svm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 8a2118b09fd2..0eac1a5060a6 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1086,6 +1086,12 @@ static int nmi_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | |||
1086 | return 1; | 1086 | return 1; |
1087 | } | 1087 | } |
1088 | 1088 | ||
1089 | static int intr_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | ||
1090 | { | ||
1091 | ++svm->vcpu.stat.irq_exits; | ||
1092 | return 1; | ||
1093 | } | ||
1094 | |||
1089 | static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | 1095 | static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) |
1090 | { | 1096 | { |
1091 | return 1; | 1097 | return 1; |
@@ -1369,7 +1375,7 @@ static int (*svm_exit_handlers[])(struct vcpu_svm *svm, | |||
1369 | [SVM_EXIT_EXCP_BASE + PF_VECTOR] = pf_interception, | 1375 | [SVM_EXIT_EXCP_BASE + PF_VECTOR] = pf_interception, |
1370 | [SVM_EXIT_EXCP_BASE + NM_VECTOR] = nm_interception, | 1376 | [SVM_EXIT_EXCP_BASE + NM_VECTOR] = nm_interception, |
1371 | [SVM_EXIT_EXCP_BASE + MC_VECTOR] = mc_interception, | 1377 | [SVM_EXIT_EXCP_BASE + MC_VECTOR] = mc_interception, |
1372 | [SVM_EXIT_INTR] = nop_on_interception, | 1378 | [SVM_EXIT_INTR] = intr_interception, |
1373 | [SVM_EXIT_NMI] = nmi_interception, | 1379 | [SVM_EXIT_NMI] = nmi_interception, |
1374 | [SVM_EXIT_SMI] = nop_on_interception, | 1380 | [SVM_EXIT_SMI] = nop_on_interception, |
1375 | [SVM_EXIT_INIT] = nop_on_interception, | 1381 | [SVM_EXIT_INIT] = nop_on_interception, |