OSDN Git Service

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)
commitabb6d479e22642c82d552970d85edd9b5fe8beb6
tree76e3cac3064da0e56b70a9519d1ea06ae18aec1e
parentdd2319c61888018a5295264c9b631e151dad364d
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