]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: Drop __KVM_HAVE_IOAPIC condition on irq routing
authorAlexander Graf <agraf@suse.de>
Mon, 15 Apr 2013 08:49:31 +0000 (10:49 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:15 +0000 (20:27 +0200)
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>
include/uapi/linux/kvm.h

index 74d0ff3dfd666b073bc1698e05e646ed0b4a9fed..c741902c9e0b080c9eb86969a802d2cd33ab2c52 100644 (file)
@@ -579,9 +579,7 @@ struct kvm_ppc_smmu_info {
 #ifdef __KVM_HAVE_PIT
 #define KVM_CAP_REINJECT_CONTROL 24
 #endif
-#ifdef __KVM_HAVE_IOAPIC
 #define KVM_CAP_IRQ_ROUTING 25
-#endif
 #define KVM_CAP_IRQ_INJECT_STATUS 26
 #ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
 #define KVM_CAP_DEVICE_DEASSIGNMENT 27