Skip to content

Commit

Permalink
kvm: drop reference to KVM_CAP_PCI_2_3
Browse files Browse the repository at this point in the history
This is a remnant of pre-VFIO device assignment; it is not defined
anymore by Linux and not used by QEMU.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Oct 25, 2023
1 parent f8c0687 commit d19fe67
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions accel/kvm/kvm-all.c
Original file line number Diff line number Diff line change
Expand Up @@ -2576,8 +2576,6 @@ static int kvm_init(MachineState *ms)

s->max_nested_state_len = kvm_check_extension(s, KVM_CAP_NESTED_STATE);

s->intx_set_mask = kvm_check_extension(s, KVM_CAP_PCI_2_3);

s->irq_set_ioctl = KVM_IRQ_LINE;
if (kvm_check_extension(s, KVM_CAP_IRQ_INJECT_STATUS)) {
s->irq_set_ioctl = KVM_IRQ_LINE_STATUS;
Expand Down Expand Up @@ -3237,11 +3235,6 @@ int kvm_has_gsi_routing(void)
#endif
}

int kvm_has_intx_set_mask(void)
{
return kvm_state->intx_set_mask;
}

bool kvm_arm_supports_user_irq(void)
{
return kvm_check_extension(kvm_state, KVM_CAP_ARM_USER_IRQ);
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ int kvm_has_debugregs(void);
int kvm_max_nested_state_length(void);
int kvm_has_many_ioeventfds(void);
int kvm_has_gsi_routing(void);
int kvm_has_intx_set_mask(void);

/**
* kvm_arm_supports_user_irq
Expand Down
1 change: 0 additions & 1 deletion include/sysemu/kvm_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ struct KVMState
#endif
int max_nested_state_len;
int many_ioeventfds;
int intx_set_mask;
int kvm_shadow_mem;
bool kernel_irqchip_allowed;
bool kernel_irqchip_required;
Expand Down

0 comments on commit d19fe67

Please sign in to comment.