Commit 7df35f549606e8a9004a77ef31dc80dfa893a590

Authored by Alexander Graf
1 parent e8cde0939d

KVM: Move irqfd resample cap handling to generic code

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>

Showing 2 changed files with 3 additions and 1 deletions Side-by-side Diff

... ... @@ -2522,7 +2522,6 @@
2522 2522 case KVM_CAP_PCI_2_3:
2523 2523 case KVM_CAP_KVMCLOCK_CTRL:
2524 2524 case KVM_CAP_READONLY_MEM:
2525   - case KVM_CAP_IRQFD_RESAMPLE:
2526 2525 r = 1;
2527 2526 break;
2528 2527 case KVM_CAP_COALESCED_MMIO:
... ... @@ -2433,6 +2433,9 @@
2433 2433 #ifdef CONFIG_HAVE_KVM_MSI
2434 2434 case KVM_CAP_SIGNAL_MSI:
2435 2435 #endif
  2436 +#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
  2437 + case KVM_CAP_IRQFD_RESAMPLE:
  2438 +#endif
2436 2439 return 1;
2437 2440 #ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
2438 2441 case KVM_CAP_IRQ_ROUTING: