OSDN Git Service

KVM: SVM: Move svm_hardware_setup() and its helpers below svm_x86_ops
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:32 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:14:48 +0000 (12:14 -0500)
commit54744e17f031cbc5c5b995b1e275df1520c8a739
treedebd5ce93d3128564054003e4aa59ee51988a275
parent935a7333958e91b5d0c1b0ebc75a5cefdbb34dd5
KVM: SVM: Move svm_hardware_setup() and its helpers below svm_x86_ops

Move svm_hardware_setup() below svm_x86_ops so that KVM can modify ops
during setup, e.g. the vcpu_(un)blocking hooks can be nullified if AVIC
is disabled or unsupported.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211208015236.1616697-23-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c