KVM: x86: move kvm_inject_gp up from kvm_set_xcr to callers
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Dec 2020 12:49:54 +0000 (07:49 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:37 +0000 (05:27 -0500)
commitbbefd4fc8f590e765b455ef0a4deb6c105fee305
treef40df0f620d38cc37fc487133c0bd5095a203155
parentfd238002616c5f1e44d9d8feed42580059eab87d
KVM: x86: move kvm_inject_gp up from kvm_set_xcr to callers

Push the injection of #GP up to the callers, so that they can just use
kvm_complete_insn_gp.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c