Re: [PATCH 1/5] iommu/virtio: Break out bypass identity support into a global static

2025-02-24 Thread Jason Gunthorpe
On Fri, Feb 21, 2025 at 11:35:27AM +, Jean-Philippe Brucker wrote: > > +static int viommu_attach_identity_domain(struct iommu_domain *domain, > > +struct device *dev) > > +{ > > + int ret = 0; > > + struct virtio_iommu_req_attach req; > > + struct viomm

Re: [PATCH 1/5] iommu/virtio: Break out bypass identity support into a global static

2025-02-21 Thread Jean-Philippe Brucker
On Fri, Feb 07, 2025 at 10:46:01AM -0400, Jason Gunthorpe wrote: > To make way for a domain_alloc_paging conversion add the typical global > static IDENTITY domain. This supports VMMs that have a > VIRTIO_IOMMU_F_BYPASS_CONFIG config. > > If the VMM does not have support then the domain_alloc path

Re: [PATCH 1/5] iommu/virtio: Break out bypass identity support into a global static

2025-02-18 Thread Jason Gunthorpe
On Tue, Feb 11, 2025 at 04:43:55PM -0800, Jacob Pan wrote: > > +static int viommu_send_attach_req(struct viommu_dev *viommu, struct > > device *dev, > > + struct virtio_iommu_req_attach > > *req) +{ > > + struct iommu_fwspec *fwspec = dev_iommu_fwspec_get(dev); > > +

Re: [PATCH 1/5] iommu/virtio: Break out bypass identity support into a global static

2025-02-11 Thread Jacob Pan
Hi Jason, On Fri, 7 Feb 2025 10:46:01 -0400 Jason Gunthorpe wrote: > To make way for a domain_alloc_paging conversion add the typical > global static IDENTITY domain. This supports VMMs that have a > VIRTIO_IOMMU_F_BYPASS_CONFIG config. > > If the VMM does not have support then the domain_allo

[PATCH 1/5] iommu/virtio: Break out bypass identity support into a global static

2025-02-07 Thread Jason Gunthorpe
To make way for a domain_alloc_paging conversion add the typical global static IDENTITY domain. This supports VMMs that have a VIRTIO_IOMMU_F_BYPASS_CONFIG config. If the VMM does not have support then the domain_alloc path is still used, which creates an IDENTITY domain out of a paging domain. S