Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/gic-v3-its: Tag ITS device as shared if allocating for a proxy device

The ITS already has some notion of "shared" devices. Let's map the
MSI_ALLOC_FLAGS_PROXY_DEVICE flag onto this internal property.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/20201129135208.680293-3-maz@kernel.org

+3
+3
drivers/irqchip/irq-gic-v3-its.c
··· 3487 3487 goto out; 3488 3488 } 3489 3489 3490 + if (info->flags & MSI_ALLOC_FLAGS_PROXY_DEVICE) 3491 + its_dev->shared = true; 3492 + 3490 3493 pr_debug("ITT %d entries, %d bits\n", nvec, ilog2(nvec)); 3491 3494 out: 3492 3495 mutex_unlock(&its->dev_alloc_lock);