]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: make several APIC virtualization callbacks optional
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 Feb 2022 18:08:19 +0000 (13:08 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Feb 2022 17:41:23 +0000 (12:41 -0500)
commit966df9188ba8e5eb338971419893f46ac61bbffb
tree76e3cac3064da0e56b70a9519d1ea06ae18aec1e
parentcb47f8efa164e2541d688fcd1efa5625c2f33304
KVM: x86: make several APIC virtualization callbacks optional

All their invocations are conditional on vcpu->arch.apicv_active,
meaning that they need not be implemented by vendor code: even
though at the moment both vendors implement APIC virtualization,
all of them can be optional.  In fact SVM does not need many of
them, and their implementation can be deleted now.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm-x86-ops.h
arch/x86/kvm/lapic.c
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/x86.c