|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/passthrough: Support a single iommu_domain(context bank) per xen domain per SMMU
On 20/03/2015 13:56, Robert VanVossen wrote: xen/drivers/passthrough/arm/smmu.c | 113 ++++++++++++++++++++++++++++-------- 1 file changed, 88 insertions(+), 25 deletions(-) diff --git a/xen/drivers/passthrough/arm/smmu.c b/xen/drivers/passthrough/arm/smmu.c index a7a7da9..9b46054 100644[..] AFAICT arm_smmu_detach_dev will only fail it's not able to find an iommu_group (i.e the list of Stream IDs) for a device. On Xen case, the check in arm_smmu_deassign_dev guaranty us that the device is used by the SMMU and therefore an iommu_group exits for it. So I think we can safely move the call in arm_smmu_detach_dev. [..] + dev_err(dev, "cannot attach device to already existing iommu_domain\n"); + return -ENXIO; + }Is this an appropriate return error? I would return the result of arm_smmu_attach_dev (i.e ret). [..]
Thanks. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |