mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 21:04:14 +00:00
s390 doesn't use irq_domains, so it has no place to set IRQ_DOMAIN_FLAG_ISOLATED_MSI. Instead of continuing to abuse the iommu subsystem to convey this information add a simple define which s390 can make statically true. The define will cause msi_device_has_isolated() to return true. Remove IOMMU_CAP_INTR_REMAP from the s390 iommu driver. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Matthew Rosato <[email protected]> Tested-by: Matthew Rosato <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
18 lines
527 B
C
18 lines
527 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_S390_MSI_H
|
|
#define _ASM_S390_MSI_H
|
|
#include <asm-generic/msi.h>
|
|
|
|
/*
|
|
* Work around S390 not using irq_domain at all so we can't set
|
|
* IRQ_DOMAIN_FLAG_ISOLATED_MSI. See for an explanation how it works:
|
|
*
|
|
* https://lore.kernel.org/r/[email protected]/
|
|
*
|
|
* Note this is less isolated than the ARM/x86 versions as userspace can trigger
|
|
* MSI belonging to kernel devices within the same gisa.
|
|
*/
|
|
#define arch_is_isolated_msi() true
|
|
|
|
#endif
|