diff options
author | Robin Murphy <robin.murphy@arm.com> | 2016-11-11 17:59:21 (GMT) |
---|---|---|
committer | Xie Xiaobo <xiaobo.xie@nxp.com> | 2017-09-25 07:25:48 (GMT) |
commit | b1a61c9cb22bdaf78fdb213aee3da08d9685c5b4 (patch) | |
tree | f9c132a74b5a063844f8039f49ff7649db824a9f /include/xen | |
parent | 35409e0af5d9ead7d0bc9a7b003811e6428dc1e3 (diff) | |
download | linux-b1a61c9cb22bdaf78fdb213aee3da08d9685c5b4.tar.xz |
iommu: Allow taking a reference on a group directly
iommu_group_get_for_dev() expects that the IOMMU driver's device_group
callback return a group with a reference held for the given device.
Whilst allocating a new group is fine, and pci_device_group() correctly
handles reusing an existing group, there is no general means for IOMMU
drivers doing their own group lookup to take additional references on an
existing group pointer without having to also store device pointers or
resort to elaborate trickery.
Add an IOMMU-driver-specific function to fill the hole.
Acked-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions