diff options
| author | Cédric Le Goater <[email protected]> | 2021-10-11 07:02:03 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-10-13 05:38:55 +0000 |
| commit | 6f779e1d359b8d5801f677c1d49dcfa10bf95674 (patch) | |
| tree | 4a3247e3bfeede1ca1779ba4e00daedc17e8071e /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | pseries/eeh: Fix the kdump kernel crash during eeh_pseries_init (diff) | |
| download | kernel-6f779e1d359b8d5801f677c1d49dcfa10bf95674.tar.gz kernel-6f779e1d359b8d5801f677c1d49dcfa10bf95674.zip | |
powerpc/xive: Discard disabled interrupts in get_irqchip_state()
When an interrupt is passed through, the KVM XIVE device calls the
set_vcpu_affinity() handler which raises the P bit to mask the
interrupt and to catch any in-flight interrupts while routing the
interrupt to the guest.
On the guest side, drivers (like some Intels) can request at probe
time some MSIs and call synchronize_irq() to check that there are no
in flight interrupts. This will call the XIVE get_irqchip_state()
handler which will always return true as the interrupt P bit has been
set on the host side and lock the CPU in an infinite loop.
Fix that by discarding disabled interrupts in get_irqchip_state().
Fixes: da15c03b047d ("powerpc/xive: Implement get_irqchip_state method for XIVE to fix shutdown race")
Cc: [email protected] #v5.4+
Signed-off-by: Cédric Le Goater <[email protected]>
Tested-by: seeteena <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
