diff options
author | Christoph Hellwig <hch@lst.de> | 2021-04-01 18:52:52 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2021-04-07 11:56:53 +0300 |
commit | 7e147547783a9035df816864b6a45ffbb254d700 (patch) | |
tree | 6fec770a6dfdbc48d415ae3f5bdfcfe313d31b34 /drivers/vfio/vfio_iommu_type1.c | |
parent | bc9a05eef113e75cfa792fdf24dae011bc3d5294 (diff) | |
download | linux-7e147547783a9035df816864b6a45ffbb254d700.tar.xz |
iommu: remove DOMAIN_ATTR_NESTING
Use an explicit enable_nesting method instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Will Deacon <will@kernel.org>
Acked-by: Li Yang <leoyang.li@nxp.com>
Link: https://lore.kernel.org/r/20210401155256.298656-17-hch@lst.de
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/vfio/vfio_iommu_type1.c')
-rw-r--r-- | drivers/vfio/vfio_iommu_type1.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/vfio/vfio_iommu_type1.c b/drivers/vfio/vfio_iommu_type1.c index c8e57f22f421..1201482e6eec 100644 --- a/drivers/vfio/vfio_iommu_type1.c +++ b/drivers/vfio/vfio_iommu_type1.c @@ -2320,10 +2320,7 @@ static int vfio_iommu_type1_attach_group(void *iommu_data, } if (iommu->nesting) { - int attr = 1; - - ret = iommu_domain_set_attr(domain->domain, DOMAIN_ATTR_NESTING, - &attr); + ret = iommu_enable_nesting(domain->domain); if (ret) goto out_domain; } |