]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita3c19d5beaad25fcaa703b251c72c3a22fc09100
tree379a265a93d06b9adb6757d47d424dd913080fc8
parent54744e17f031cbc5c5b995b1e275df1520c8a739
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