]> git.hungrycats.org Git - linux/commit
kvm: move advertising of KVM_CAP_IRQFD to common code
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Mar 2015 10:54:46 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 12:59:48 +0000 (13:59 +0100)
commit506be1c17d1d454b1f25e01a027cd2d1338f6d89
tree28e7f867ccb0ea02acd429d94be2a56330e514bb
parent4acde8bf03d0aeb901cf46c4babefb45aec92f76
kvm: move advertising of KVM_CAP_IRQFD to common code

commit dc9be0fac70a2ad86e31a81372bb0bdfb6945353 upstream.

POWER supports irqfds but forgot to advertise them.  Some userspace does
not check for the capability, but others check it---thus they work on
x86 and s390 but not POWER.

To avoid that other architectures in the future make the same mistake, let
common code handle KVM_CAP_IRQFD the same way as KVM_CAP_IRQFD_RESAMPLE.

Reported-and-tested-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Fixes: 297e21053a52f060944e9f0de4c64fad9bcd72fc
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c