On 28.05.2025 11:12, Mykyta Poturai wrote:
> From: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com>
> 
> The main purpose of this patch is to add a way to register PCI device
> (which is behind the IOMMU) using the generic PCI-IOMMU DT bindings [1]
> before assigning that device to a domain.
> 
> This behaves similarly to the existing iommu_add_dt_device API, except it
> handles PCI devices, and it is to be invoked from the add_device hook in the
> SMMU driver.
> 
> The function dt_map_id to translate an ID through a downstream mapping
> (which is also suitable for mapping Requester ID) was borrowed from Linux
> (v5.10-rc6) and updated according to the Xen code base.
> 
> [1] 
> https://www.kernel.org/doc/Documentation/devicetree/bindings/pci/pci-iommu.txt
> 
> Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshche...@epam.com>
> Signed-off-by: Stewart Hildebrand <stewart.hildebr...@amd.com>
> Signed-off-by: Mykyta Poturai <mykyta_potu...@epam.com>
> Reviewed-by: Stefano Stabellini <sstabell...@kernel.org>

While I'm not happy about all this DT stuff in ...

> ---
>  xen/arch/arm/include/asm/iommu.h      | 15 +++++
>  xen/common/device-tree/device-tree.c  | 91 +++++++++++++++++++++++++++
>  xen/drivers/passthrough/arm/iommu.c   | 13 ++++
>  xen/drivers/passthrough/device_tree.c | 42 +++++++++++++
>  xen/include/xen/device_tree.h         | 23 +++++++
>  xen/include/xen/iommu.h               | 21 ++++++-

... this file, it's only adding to what's there already, so
Acked-by: Jan Beulich <jbeul...@suse.com>

Jan

Reply via email to