]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move XSETBV emulation to common code
authorSean Christopherson <seanjc@google.com>
Fri, 5 Feb 2021 00:57:46 +0000 (16:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:18 +0000 (04:43 -0400)
commit4953d16194c3d0793139d2d3b68dd756230a1f38
treede93bac81020e943b8312b8c16cdce95b93bc287
parent0b3947c36f95538de3f247ddd0ece30958802df5
KVM: x86: Move XSETBV emulation to common code

Move the entirety of XSETBV emulation to x86.c, and assign the
function directly to both VMX's and SVM's exit handlers, i.e. drop the
unnecessary trampolines.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-6-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