OSDN Git Service

KVM: x86: Kill off __ex() and __kvm_handle_fault_on_reboot()
authorSean Christopherson <seanjc@google.com>
Mon, 9 Aug 2021 17:39:54 +0000 (10:39 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Aug 2021 07:35:16 +0000 (03:35 -0400)
commitad0577c375299a2cc426913c141086c0e9033c78
tree42491e1d0458357ed10dc7aaebb301d4a515c611
parent2fba4fc155280727b4997c6ee86f24c260dd9155
KVM: x86: Kill off __ex() and __kvm_handle_fault_on_reboot()

Remove the __kvm_handle_fault_on_reboot() and __ex() macros now that all
VMX and SVM instructions use asm goto to handle the fault (or in the
case of VMREAD, completely custom logic).  Drop kvm_spurious_fault()'s
asmlinkage annotation as __kvm_handle_fault_on_reboot() was the only
flow that invoked it from assembly code.

Cc: Uros Bizjak <ubizjak@gmail.com>
Cc: Like Xu <like.xu.linux@gmail.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210809173955.1710866-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx_ops.h
arch/x86/kvm/x86.c