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

driver core: Add iommu_group tracking to struct device

IOMMU groups allow IOMMU drivers to represent DMA visibility
and isolation of devices. Multiple devices may be grouped
together for the purposes of DMA. Placing a pointer on
struct device enable easy access for things like streaming
DMA programming and drivers like VFIO.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>

authored by

Alex Williamson and committed by
Joerg Roedel
74416e1e 3ebb9566

+2
+2
include/linux/device.h
··· 36 36 struct bus_type; 37 37 struct device_node; 38 38 struct iommu_ops; 39 + struct iommu_group; 39 40 40 41 struct bus_attribute { 41 42 struct attribute attr; ··· 688 687 const struct attribute_group **groups; /* optional groups */ 689 688 690 689 void (*release)(struct device *dev); 690 + struct iommu_group *iommu_group; 691 691 }; 692 692 693 693 /* Get the wakeup routines, which depend on struct device */