aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/svm/nested.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/svm/nested.c')
-rw-r--r--arch/x86/kvm/svm/nested.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
index 525117a49c18..0d25dea40796 100644
--- a/arch/x86/kvm/svm/nested.c
+++ b/arch/x86/kvm/svm/nested.c
@@ -617,10 +617,9 @@ static inline bool is_evtinj_soft(u32 evtinj)
if (!(evtinj & SVM_EVTINJ_VALID))
return false;
- /*
- * Intentionally return false for SOFT events, SVM doesn't yet support
- * re-injecting soft interrupts.
- */
+ if (type == SVM_EVTINJ_TYPE_SOFT)
+ return true;
+
return type == SVM_EVTINJ_TYPE_EXEPT && kvm_exception_is_soft(vector);
}