diff options
| author | Peter Xu <peterx@redhat.com> | 2019-12-04 20:07:16 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-05 16:45:23 +0100 |
| commit | 0eb2135e91839cb3199e44881e56e8b21bff8032 (patch) | |
| tree | 9697dd1634f1fc8f74aea0f0fa1d78df27bc2233 | |
| parent | 82e61a265aed4a1be7dd06c25b0533cceab903e5 (diff) | |
| download | linux-0eb2135e91839cb3199e44881e56e8b21bff8032.tar.gz linux-0eb2135e91839cb3199e44881e56e8b21bff8032.tar.bz2 linux-0eb2135e91839cb3199e44881e56e8b21bff8032.zip | |
KVM: X86: Fix kvm_bitmap_or_dest_vcpus() to use irq shorthand
commit b4b2963616bbd91ebb33148522552e1135de56ae upstream.
The 3rd parameter of kvm_apic_match_dest() is the irq shorthand,
rather than the irq delivery mode.
Fixes: 7ee30bc132c6 ("KVM: x86: deliver KVM IOAPIC scan request to target vCPUs")
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
| -rw-r--r-- | arch/x86/kvm/lapic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index f05123acaa64..a1daebe2a60f 100644 --- a/arch/x86/kvm/lapic.c +++ b/arch/x86/kvm/lapic.c @@ -1150,7 +1150,7 @@ void kvm_bitmap_or_dest_vcpus(struct kvm *kvm, struct kvm_lapic_irq *irq, if (!kvm_apic_present(vcpu)) continue; if (!kvm_apic_match_dest(vcpu, NULL, - irq->delivery_mode, + irq->shorthand, irq->dest_id, irq->dest_mode)) continue; |
