]> git.baikalelectronics.ru Git - kernel.git/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)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 11 Mar 2015 00:18:59 +0000 (21:18 -0300)
commitb2ac74a18c98a99365bb9f7e3e95c6a821d0b922
treed515c5004b6f58412e3dac08729afa614aca0b9b
parent14f3ae614e483679b4e292f1c87354df39270508
kvm: move advertising of KVM_CAP_IRQFD to common code

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>
Cc: stable@vger.kernel.org
Fixes: a4362f0118ae14f5f72043f194bbe5cbdb479957
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c