Skip to content

Commit 7df35f5

Browse files
committed
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>
1 parent e8cde09 commit 7df35f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2522,7 +2522,6 @@ int kvm_dev_ioctl_check_extension(long ext)
25222522
case KVM_CAP_PCI_2_3:
25232523
case KVM_CAP_KVMCLOCK_CTRL:
25242524
case KVM_CAP_READONLY_MEM:
2525-
case KVM_CAP_IRQFD_RESAMPLE:
25262525
r = 1;
25272526
break;
25282527
case KVM_CAP_COALESCED_MMIO:

virt/kvm/kvm_main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,6 +2432,9 @@ static long kvm_dev_ioctl_check_extension_generic(long arg)
24322432
case KVM_CAP_INTERNAL_ERROR_DATA:
24332433
#ifdef CONFIG_HAVE_KVM_MSI
24342434
case KVM_CAP_SIGNAL_MSI:
2435+
#endif
2436+
#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING
2437+
case KVM_CAP_IRQFD_RESAMPLE:
24352438
#endif
24362439
return 1;
24372440
#ifdef CONFIG_HAVE_KVM_IRQ_ROUTING

0 commit comments

Comments
 (0)