]> xenbits.xensource.com Git - xen.git/commit
x86/iommu: disable interrupts at shutdown
authorRoger Pau Monne <roger.pau@citrix.com>
Tue, 4 Feb 2025 10:46:14 +0000 (11:46 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Wed, 12 Feb 2025 14:56:07 +0000 (15:56 +0100)
commit819c3cb186a86ef3e04fb5af4d9f9f6de032c3ee
tree415b1798eb65af9160f60c31f82dee8c3da98776
parent7ab6951981231b4c576a3588248c303001272588
x86/iommu: disable interrupts at shutdown

Add a new hook to inhibit interrupt generation by the IOMMU(s).  Note the
hook is currently only implemented for x86 IOMMUs.  The purpose is to
disable interrupt generation at shutdown so any kexec chained image finds
the IOMMU(s) in a quiesced state.

It would also prevent "Receive accept error" being raised as a result of
non-disabled interrupts targeting offline CPUs.

Note that the iommu_quiesce() call in nmi_shootdown_cpus() is still
required even when there's a preceding iommu_crash_shutdown() call; the
later can become a no-op depending on the setting of the "crash-disable"
command line option.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-by: Oleksii Kurochko<oleksii.kurochko@gmail.com>
xen/arch/x86/crash.c
xen/arch/x86/smp.c
xen/drivers/passthrough/amd/iommu.h
xen/drivers/passthrough/amd/iommu_init.c
xen/drivers/passthrough/amd/pci_amd_iommu.c
xen/drivers/passthrough/iommu.c
xen/drivers/passthrough/vtd/iommu.c
xen/include/xen/iommu.h