]> www.infradead.org Git - users/dwmw2/linux.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>
Fri, 26 Feb 2021 13:36:05 +0000 (08:36 -0500)
commit16cc943a88e46b92bee50c875cb717908456f74b
tree1872353be29276451e957e18fdbd42ab71bfa687
parent19d7d4ab546ee2d1c2240cf55d9ad515219479f5
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