]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: remove INIT intercept handler
authorMaxim Levitsky <mlevitsk@redhat.com>
Wed, 7 Jul 2021 12:50:59 +0000 (15:50 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 15 Jul 2021 14:19:42 +0000 (10:19 -0400)
commit8ee9ca80254480cd57b8f2d176646b6448b86d08
tree8434bf02ff1e304b1f6f9381c931422c588a5d4a
parent94ba270f4b7edd9ace0f4a8beb46ef334221fcc8
KVM: SVM: remove INIT intercept handler

Kernel never sends real INIT even to CPUs, other than on boot.

Thus INIT interception is an error which should be caught
by a check for an unknown VMexit reason.

On top of that, the current INIT VM exit handler skips
the current instruction which is wrong.
That was added in commit 1f131e542ed9 ("KVM: x86: Move trivial
instruction-based exit handlers to common code").

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-3-mlevitsk@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c