]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Drop NULL check on kvm_x86_ops.check_apicv_inhibit_reasons
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:35 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:47:08 +0000 (13:47 -0500)
commitdeba387f1ad0fad419cc6a46db677eccb94af611
tree5677879d9076764c33b502f4d6d1221249e34e98
parent1a89b06c8a7593473ecf92a4cb922d703030d679
KVM: x86: Drop NULL check on kvm_x86_ops.check_apicv_inhibit_reasons

Drop the useless NULL check on kvm_x86_ops.check_apicv_inhibit_reasons
when handling an APICv update, both VMX and SVM unconditionally implement
the helper and leave it non-NULL even if APICv is disabled at the module
level.  The latter is a moot point now that __kvm_request_apicv_update()
is called if and only if enable_apicv is true.

No functional change intended.

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