genirq/msi: Check for invalid MSI parent domain usage
authorThomas Gleixner <tglx@linutronix.de>
Thu, 24 Nov 2022 23:24:19 +0000 (00:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 5 Dec 2022 18:20:59 +0000 (19:20 +0100)
commit3e86a3a3ed031dd498e614db0fa082a58d700df9
tree0a0c228bf38e187b446716cd44adeab80b4b2138
parente71c5d0bb1885b73c746b634895b85d135ce2c87
genirq/msi: Check for invalid MSI parent domain usage

In the upcoming per device MSI domain concept the MSI parent domains are
not allowed to be used as regular MSI domains where the MSI allocation/free
operations are applicable.

Add appropriate checks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221124230313.806128070@linutronix.de
kernel/irq/msi.c