Re: [PATCH v2 2/5] iommu: Add domain_alloc_identity()

2025-02-28 Thread Jason Gunthorpe
On Fri, Feb 28, 2025 at 09:59:53AM +0800, Baolu Lu wrote: > This seems to be a paging domain with identity mappings for some > specific ranges. Sometimes it's the global static too > So perhaps naming the callback as domain_alloc_paging_identity, or > domain_alloc_paging_static? s390 and dart

Re: [PATCH v2 2/5] iommu: Add domain_alloc_identity()

2025-02-27 Thread Baolu Lu
On 2/28/25 08:20, Jason Gunthorpe wrote: virtio-iommu has a mode where the IDENTITY domain is actually a paging domain with an identity mapping covering some of the system address space manually created. To support this add a new domain_alloc_identity() op that accepts the struct device so that

[PATCH v2 2/5] iommu: Add domain_alloc_identity()

2025-02-27 Thread Jason Gunthorpe
virtio-iommu has a mode where the IDENTITY domain is actually a paging domain with an identity mapping covering some of the system address space manually created. To support this add a new domain_alloc_identity() op that accepts the struct device so that virtio can allocate and fully finalize a pa