]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: #SMI interception must not skip the instruction
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 7 Jul 2021 12:50:58 +0000 (15:50 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jul 2021 14:19:42 +0000 (10:19 -0400)
commit94ba270f4b7edd9ace0f4a8beb46ef334221fcc8
treee6bfdc5f84e75dff8de789e63d0a53138ed2cb6c
parentebb2fff3b969f1bd6ecbb06ed8a1f89a261fd536
KVM: SVM: #SMI interception must not skip the instruction

Commit 1f131e542ed9 ("KVM: x86: Move trivial instruction-based
exit handlers to common code"), unfortunately made a mistake of
treating nop_on_interception and nop_interception in the same way.

Former does truly nothing while the latter skips the instruction.

SMI VM exit handler should do nothing.
(SMI itself is handled by the host when we do STGI)

Fixes: 1f131e542ed9 ("KVM: x86: Move trivial instruction-based exit handlers to common code")
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20210707125100.677203-2-mlevitsk@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c