Skip to content

Commit c7d4c5f

Browse files
bysuisean-jc
authored andcommitted
KVM: x86: Drop unused check_apicv_inhibit_reasons() callback definition
The check_apicv_inhibit_reasons() callback implementation was dropped in the commit b3f257a ("KVM: x86: Track required APICv inhibits with variable, not callback"), but the definition removal was missed in the final version patch (it was removed in the v4). Therefore, it should be dropped, and the vmx_check_apicv_inhibit_reasons() function declaration should also be removed. Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com> Reviewed-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com> Link: https://lore.kernel.org/r/54abd1d0ccaba4d532f81df61259b9c0e021fbde.1714977229.git.houwenlong.hwl@antgroup.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent f992572 commit c7d4c5f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/x86/include/asm/kvm_host.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,6 @@ struct kvm_x86_ops {
17281728
void (*enable_nmi_window)(struct kvm_vcpu *vcpu);
17291729
void (*enable_irq_window)(struct kvm_vcpu *vcpu);
17301730
void (*update_cr8_intercept)(struct kvm_vcpu *vcpu, int tpr, int irr);
1731-
bool (*check_apicv_inhibit_reasons)(enum kvm_apicv_inhibit reason);
17321731
const unsigned long required_apicv_inhibits;
17331732
bool allow_apicv_in_x2apic_without_x2apic_virtualization;
17341733
void (*refresh_apicv_exec_ctrl)(struct kvm_vcpu *vcpu);

arch/x86/kvm/vmx/x86_ops.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ bool vmx_apic_init_signal_blocked(struct kvm_vcpu *vcpu);
4646
void vmx_migrate_timers(struct kvm_vcpu *vcpu);
4747
void vmx_set_virtual_apic_mode(struct kvm_vcpu *vcpu);
4848
void vmx_apicv_pre_state_restore(struct kvm_vcpu *vcpu);
49-
bool vmx_check_apicv_inhibit_reasons(enum kvm_apicv_inhibit reason);
5049
void vmx_hwapic_irr_update(struct kvm_vcpu *vcpu, int max_irr);
5150
void vmx_hwapic_isr_update(int max_isr);
5251
bool vmx_guest_apic_has_interrupt(struct kvm_vcpu *vcpu);

0 commit comments

Comments
 (0)