diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2022-05-04 09:48:07 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-03-31 17:19:05 +0200 |
commit | 52882b9c7a761b2b4e44717d6fbd1ed94c601b7f (patch) | |
tree | 7682e58f5aec1c8bb76519b64ca77ab47076929d /virt/kvm | |
parent | Merge tag 'kvm-s390-master-6.3-1' of https://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-52882b9c7a761b2b4e44717d6fbd1ed94c601b7f.tar.xz linux-52882b9c7a761b2b4e44717d6fbd1ed94c601b7f.zip |
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>
Diffstat (limited to 'virt/kvm')
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index d255964ec331..b1679d08a216 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -4479,7 +4479,6 @@ static long kvm_vm_ioctl_check_extension_generic(struct kvm *kvm, long arg) #endif #ifdef CONFIG_HAVE_KVM_IRQFD case KVM_CAP_IRQFD: - case KVM_CAP_IRQFD_RESAMPLE: #endif case KVM_CAP_IOEVENTFD_ANY_LENGTH: case KVM_CAP_CHECK_EXTENSION_VM: |