]> 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)
commit3352f9f54507dec74cb5c8d7a5f74780c402eb5e
tree76e3cac3064da0e56b70a9519d1ea06ae18aec1e
parent665ba0f63aab126969f9d1af16807ef7191281e2
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