]> xenbits.xensource.com Git - people/jgross/xen.git/commit
x86/hvm: don't force vCPU 0 for IRQ 0 when using fixed destination mode
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 27 Jul 2020 17:05:36 +0000 (19:05 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 28 Jul 2020 18:33:28 +0000 (19:33 +0100)
commitab5bfc049e8e04bca66d591ab439d2341623f83c
treed9b7ea1fe8815339dd6ae2a72dcbaf02c246ad2e
parent4489ffdec331cdd3a2e025f9def68e07403706d1
x86/hvm: don't force vCPU 0 for IRQ 0 when using fixed destination mode

When the IO APIC pin mapped to the ISA IRQ 0 has been configured to
use fixed delivery mode, do not forcefully route interrupts to vCPU 0,
as the OS might have setup those interrupts to be injected to a
different vCPU, and injecting to vCPU 0 can cause the OS to miss such
interrupts or errors to happen due to unexpected vectors being
injected on vCPU 0.

In order to fix remove such handling altogether for fixed destination
mode pins and just inject them according to the data setup in the
IO-APIC entry.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vioapic.c