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

2025-02-12 Thread Jason Gunthorpe
On Wed, Feb 12, 2025 at 02:16:54PM +, Robin Murphy wrote: > On 2025-02-12 2:03 pm, Jason Gunthorpe wrote: > > On Wed, Feb 12, 2025 at 01:56:55PM +, Robin Murphy wrote: > > > On 2025-02-07 2:46 pm, Jason Gunthorpe wrote: > > > > virtio-iommu has a mode where the IDENTITY domain is actually a

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

2025-02-12 Thread Robin Murphy
On 2025-02-12 2:03 pm, Jason Gunthorpe wrote: On Wed, Feb 12, 2025 at 01:56:55PM +, Robin Murphy wrote: On 2025-02-07 2:46 pm, 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 sp

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

2025-02-12 Thread Jason Gunthorpe
On Wed, Feb 12, 2025 at 01:56:55PM +, Robin Murphy wrote: > On 2025-02-07 2:46 pm, 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 su

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

2025-02-12 Thread Robin Murphy
On 2025-02-07 2:46 pm, 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

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

2025-02-07 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