]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Nullify vcpu_(un)blocking() hooks if AVIC is disabled
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:33 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:14:49 +0000 (12:14 -0500)
commite548e55ce64b10ea3e0a1e136bfa570c2492b114
tree379a265a93d06b9adb6757d47d424dd913080fc8
parent450aa6515af27a829281ef19edd294013e984053
KVM: SVM: Nullify vcpu_(un)blocking() hooks if AVIC is disabled

Nullify svm_x86_ops.vcpu_(un)blocking if AVIC/APICv is disabled as the
hooks are necessary only to clear the vCPU's IsRunning entry in the
Physical APIC and to update IRTE entries if the VM has a pass-through
device attached.

Opportunistically rename the helpers to clarify their AVIC relationship.

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