diff for duplicates of <20220703002606.GZ23621@ziepe.ca> diff --git a/a/1.txt b/N1/1.txt index 1f47921..6ce44af 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -48,15 +48,15 @@ effect. > driver->ops->detach_group(container->iommu_data, > group->iommu_group); > -> - if (group->type = VFIO_IOMMU) -> + if (group->type = VFIO_IOMMU && iommu_group_dma_owner_claimed(group->iommu_group)) +> - if (group->type == VFIO_IOMMU) +> + if (group->type == VFIO_IOMMU && iommu_group_dma_owner_claimed(group->iommu_group)) > iommu_group_release_dma_owner(group->iommu_group); > > group->container = NULL; > @@ -1010,9 +1011,8 @@ static int vfio_group_set_container(struct vfio_group *group, int container_fd) > } > -> if (group->type = VFIO_IOMMU) { +> if (group->type == VFIO_IOMMU) { > - ret = iommu_group_claim_dma_owner(group->iommu_group, f.file); > - if (ret) > - goto unlock_out; diff --git a/a/content_digest b/N1/content_digest index 1601d89..39ea401 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\020220701061751.1955857-1-aik@ozlabs.ru\0" "From\0Jason Gunthorpe <jgg@ziepe.ca>\0" "Subject\0Re: [RFC PATCH kernel] vfio: Skip checking for IOMMU_CAP_CACHE_COHERENCY on POWER and more\0" - "Date\0Sun, 03 Jul 2022 00:26:06 +0000\0" + "Date\0Sat, 2 Jul 2022 21:26:06 -0300\0" "To\0Alexey Kardashevskiy <aik@ozlabs.ru>\0" "Cc\0kvm@vger.kernel.org" Robin Murphy <robin.murphy@arm.com> @@ -62,15 +62,15 @@ "> \t\tdriver->ops->detach_group(container->iommu_data,\n" "> \t\t\t\t\t group->iommu_group);\n" "> \n" - "> -\tif (group->type = VFIO_IOMMU)\n" - "> +\tif (group->type = VFIO_IOMMU && iommu_group_dma_owner_claimed(group->iommu_group))\n" + "> -\tif (group->type == VFIO_IOMMU)\n" + "> +\tif (group->type == VFIO_IOMMU && iommu_group_dma_owner_claimed(group->iommu_group))\n" "> \t\tiommu_group_release_dma_owner(group->iommu_group);\n" "> \n" "> \tgroup->container = NULL;\n" "> @@ -1010,9 +1011,8 @@ static int vfio_group_set_container(struct vfio_group *group, int container_fd)\n" "> \t}\n" "> \n" - "> \tif (group->type = VFIO_IOMMU) {\n" + "> \tif (group->type == VFIO_IOMMU) {\n" "> -\t\tret = iommu_group_claim_dma_owner(group->iommu_group, f.file);\n" "> -\t\tif (ret)\n" "> -\t\t\tgoto unlock_out;\n" @@ -83,4 +83,4 @@ "Thanks,\n" Jason -686478d01da51246c3e0e548506e959b2ed2c8ef6c1091260d5a0212b1d70acb +4be2f68f58cd6a048365bf46a2d5da10e5f268218ce858fca6e8330cce242d2a
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.