summaryrefslogtreecommitdiffstats
path: root/lib/irq_regs.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2019-04-12 12:13:25 +0800
committerJoerg Roedel <jroedel@suse.de>2019-04-12 13:00:37 +0200
commit7bd50f0cd2fd5e8cc910bc0b7db93681c1d325be (patch)
treece90c050c1555488677943b8247e1ea09e262026 /lib/irq_regs.c
parent8ac13175cbe985e78bd41f9637b613b59df36936 (diff)
downloadlinux-7bd50f0cd2fd5e8cc910bc0b7db93681c1d325be.tar.bz2
vfio/type1: Add domain at(de)taching group helpers
This adds helpers to attach or detach a domain to a group. This will replace iommu_attach_group() which only works for non-mdev devices. If a domain is attaching to a group which includes the mediated devices, it should attach to the iommu device (a pci device which represents the mdev in iommu scope) instead. The added helper supports attaching domain to groups for both pci and mdev devices. Cc: Ashok Raj <ashok.raj@intel.com> Cc: Jacob Pan <jacob.jun.pan@linux.intel.com> Cc: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Sanjay Kumar <sanjay.k.kumar@intel.com> Signed-off-by: Liu Yi L <yi.l.liu@intel.com> Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'lib/irq_regs.c')
0 files changed, 0 insertions, 0 deletions