Skip to contentSkip to conversation

KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE support platform

PATCH Superseded Timothy Pearson 1 participant 1 message Mar 3, 2023 KVM

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 KVM: PPC: Make KVM_CAP_IRQFD_RESAMPLE support 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.

---
 arch/arm64/kvm/arm.c       | 3 +++
 arch/mips/kvm/mips.c       | 3 +++
 arch/powerpc/kvm/powerpc.c | 6 ++++++
 arch/riscv/kvm/vm.c        | 3 +++
 arch/s390/kvm/kvm-s390.c   | 3 +++
 arch/x86/kvm/x86.c         | 3 +++
 virt/kvm/kvm_main.c        | 1 -
 7 files changed, 21 insertions(+), 1 deletion(-)