Skip to content
Commit 66e3cf72 authored by David Woodhouse's avatar David Woodhouse Committed by Sean Christopherson
Browse files

KVM: x86/xen: remove WARN_ON_ONCE() with false positives in evtchn delivery



The kvm_xen_inject_vcpu_vector() function has a comment saying "the fast
version will always work for physical unicast", justifying its use of
kvm_irq_delivery_to_apic_fast() and the WARN_ON_ONCE() when that fails.

In fact that assumption isn't true if X2APIC isn't in use by the guest
and there is (8-bit x)APIC ID aliasing. A single "unicast" destination
APIC ID *may* then be delivered to multiple vCPUs. Remove the warning,
and in fact it might as well just call kvm_irq_delivery_to_apic().

Reported-by: default avatarMichal Luczaj <mhal@rbox.co>
Fixes: fde0451b ("KVM: x86/xen: Support per-vCPU event channel upcall via local APIC")
Signed-off-by: default avatarDavid Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: default avatarPaul Durrant <paul@xen.org>
Link: https://lore.kernel.org/r/20240227115648.3104-4-dwmw2@infradead.org


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 8e62bf2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment