]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move trivial instruction-based exit handlers to common code
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:47 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:19 +0000 (04:43 -0400)
commit315c2d332291f2ee055b8c9ab17ee3e0aa986ed7
tree519f9c407396f23afe1b32eb4f1d38c50ff4190d
parentfc6ed7711ffc6f293e196587eb1cc41c8e31c96e
KVM: x86: Move trivial instruction-based exit handlers to common code

Move the trivial exit handlers, e.g. for instructions that KVM
"emulates" as nops, to common x86 code.  Assign the common handlers
directly to the exit handler arrays and drop the vendor trampolines.

Opportunistically use pr_warn_once() where appropriate.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-7-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c