KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE platform dependent
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 4 May 2022 07:48:07 +0000 (17:48 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 31 Mar 2023 15:19:05 +0000 (11:19 -0400)
commit52882b9c7a761b2b4e44717d6fbd1ed94c601b7f
tree7682e58f5aec1c8bb76519b64ca77ab47076929d
parent85b475a4502d45380c1b9223c01954daa228eeb0
KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE platform dependent

When introduced, IRQFD resampling worked on POWER8 with XICS. However
KVM on POWER9 has never implemented it - the compatibility mode code
("XICS-on-XIVE") misses the kvm_notify_acked_irq() call and the native
XIVE mode does not handle INTx in KVM at all.

This moved the capability support advertising to platforms and stops
advertising it on XIVE, i.e. POWER9 and later.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Anup Patel <anup@brainfault.org>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Message-Id: <20220504074807.3616813-1-aik@ozlabs.ru>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/arm.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
virt/kvm/kvm_main.c