Skip to content

Commit 948a902

Browse files
committed
KVM: Drop __KVM_HAVE_IOAPIC condition on irq routing
We have a capability enquire system that allows user space to ask kvm whether a feature is available. The point behind this system is that we can have different kernel configurations with different capabilities and user space can adjust accordingly. Because features can always be non existent, we can drop any #ifdefs on CAP defines that could be used generically, like the irq routing bits. These can be easily reused for non-IOAPIC systems as well. Signed-off-by: Alexander Graf <agraf@suse.de> Acked-by: Michael S. Tsirkin <mst@redhat.com>
1 parent a725d56 commit 948a902

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/uapi/linux/kvm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,7 @@ struct kvm_ppc_smmu_info {
579579
#ifdef __KVM_HAVE_PIT
580580
#define KVM_CAP_REINJECT_CONTROL 24
581581
#endif
582-
#ifdef __KVM_HAVE_IOAPIC
583582
#define KVM_CAP_IRQ_ROUTING 25
584-
#endif
585583
#define KVM_CAP_IRQ_INJECT_STATUS 26
586584
#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
587585
#define KVM_CAP_DEVICE_DEASSIGNMENT 27

0 commit comments

Comments
 (0)