Re: [XEN][RFC PATCH v3 09/14] xen/iommu: Introduce iommu_remove_dt_device()

2022-12-06 Thread Vikram Garhwal
Hi Luca, On 3/14/22 10:50 AM, Luca Fancellu wrote: +int iommu_remove_dt_device(struct dt_device_node *np) +{ +const struct iommu_ops *ops = iommu_get_ops(); +struct device *dev = dt_to_dev(np); +int rc; + +if ( !ops ) +return -EOPNOTSUPP; Here we have that the counterpar

Re: [XEN][RFC PATCH v3 09/14] xen/iommu: Introduce iommu_remove_dt_device()

2022-03-14 Thread Luca Fancellu
> +int iommu_remove_dt_device(struct dt_device_node *np) > +{ > +const struct iommu_ops *ops = iommu_get_ops(); > +struct device *dev = dt_to_dev(np); > +int rc; > + > +if ( !ops ) > +return -EOPNOTSUPP; Here we have that the counterpart iommu_add_dt_device returns EINVAL

[XEN][RFC PATCH v3 09/14] xen/iommu: Introduce iommu_remove_dt_device()

2022-03-08 Thread Vikram Garhwal
Remove master device from the IOMMU. Signed-off-by: Vikram Garhwal --- xen/drivers/passthrough/device_tree.c | 38 +++ xen/include/xen/iommu.h | 2 ++ 2 files changed, 40 insertions(+) diff --git a/xen/drivers/passthrough/device_tree.c b/xen/drivers/passt