KVM: Move irqfd resample cap handling to generic code
authorAlexander Graf <agraf@suse.de>
Tue, 16 Apr 2013 10:12:49 +0000 (12:12 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 26 Apr 2013 18:27:19 +0000 (20:27 +0200)
Now that we have most irqfd code completely platform agnostic, let's move
irqfd's resample capability return to generic code as well.

Signed-off-by: Alexander Graf <agraf@suse.de>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c

index 2a434bf..f6c3f03 100644 (file)
@@ -2522,7 +2522,6 @@ int kvm_dev_ioctl_check_extension(long ext)
        case KVM_CAP_PCI_2_3:
        case KVM_CAP_KVMCLOCK_CTRL:
        case KVM_CAP_READONLY_MEM:
-       case KVM_CAP_IRQFD_RESAMPLE:
                r = 1;
                break;
        case KVM_CAP_COALESCED_MMIO:
index b6f3354..f9492f3 100644 (file)
@@ -2433,6 +2433,9 @@ static long kvm_dev_ioctl_check_extension_generic(long arg)
 #ifdef CONFIG_HAVE_KVM_MSI
        case KVM_CAP_SIGNAL_MSI:
 #endif
+#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
+       case KVM_CAP_IRQFD_RESAMPLE:
+#endif
                return 1;
 #ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
        case KVM_CAP_IRQ_ROUTING: