]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: add module param to control the #SMI interception
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 7 Jul 2021 12:51:00 +0000 (15:51 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jul 2021 14:19:42 +0000 (10:19 -0400)
commit0d812bbf4f91ebd312cc56ad83c0483c45f799b7
tree9bd5b1b7617f582c24a9a1ebe4570ea6e74e7f59
parent240ae5ab651d86cf1ed53d83f7aee28c25186a41
KVM: SVM: add module param to control the #SMI interception

In theory there are no side effects of not intercepting #SMI,
because then #SMI becomes transparent to the OS and the KVM.

Plus an observation on recent Zen2 CPUs reveals that these
CPUs ignore #SMI interception and never deliver #SMI VMexits.

This is also useful to test nested KVM to see that L1
handles #SMIs correctly in case when L1 doesn't intercept #SMI.

Finally the default remains the same, the SMI are intercepted
by default thus this patch doesn't have any effect unless
non default module param value is used.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210707125100.677203-4-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h