search for: viommu_endpoint_is_compatible

Displaying 8 results from an estimated 8 matches for "viommu_endpoint_is_compatible".

2020 May 06
1
[PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint
...t; @@ -654,6 +671,29 @@ static void viommu_domain_free(struct iommu_domain *domain) > kfree(vdomain); > } > > +/* > + * Check whether the endpoint's capabilities are compatible with other > + * endpoints in the domain. Report any inconsistency. > + */ > +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, > + struct viommu_domain *vdomain) > +{ > + struct device *dev = vdev->dev; > + > + if (vdomain->viommu != vdev->viommu) { > + dev_err(dev, "cannot attach to foreign vIOMMU\n"); > + return false; > + } > + > + if...
2020 May 07
2
[EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint
...> kfree(vdomain); > > > } > > > > > > +/* > > > + * Check whether the endpoint's capabilities are compatible with > > > +other > > > + * endpoints in the domain. Report any inconsistency. > > > + */ > > > +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, > > > + struct viommu_domain *vdomain) { > > > + struct device *dev = vdev->dev; > > > + > > > + if (vdomain->viommu != vdev->viommu) { > > > + dev_err(dev, "cannot attach to foreign vIOMMU\n"); &gt...
2020 May 12
1
[PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint
...t; @@ -654,6 +671,29 @@ static void viommu_domain_free(struct iommu_domain *domain) > kfree(vdomain); > } > > +/* > + * Check whether the endpoint's capabilities are compatible with other > + * endpoints in the domain. Report any inconsistency. > + */ > +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, > + struct viommu_domain *vdomain) > +{ > + struct device *dev = vdev->dev; > + > + if (vdomain->viommu != vdev->viommu) { > + dev_err(dev, "cannot attach to foreign vIOMMU\n"); > + return false; > + } > + > + if...
2020 May 07
0
[EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint
...domain) >>> kfree(vdomain); >>> } >>> >>> +/* >>> + * Check whether the endpoint's capabilities are compatible with >>> +other >>> + * endpoints in the domain. Report any inconsistency. >>> + */ >>> +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, >>> + struct viommu_domain *vdomain) { >>> + struct device *dev = vdev->dev; >>> + >>> + if (vdomain->viommu != vdev->viommu) { >>> + dev_err(dev, "cannot attach to foreign vIOMMU\n"); >>>...
2020 May 07
0
[EXT] Re: [PATCH v5] iommu/virtio: Use page size bitmap supported by endpoint
...main); >>>> } >>>> >>>> +/* >>>> + * Check whether the endpoint's capabilities are compatible with >>>> +other >>>> + * endpoints in the domain. Report any inconsistency. >>>> + */ >>>> +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, >>>> + struct viommu_domain *vdomain) { >>>> + struct device *dev = vdev->dev; >>>> + >>>> + if (vdomain->viommu != vdev->viommu) { >>>> + dev_err(dev, "cannot attach to foreign vIOMMU\n&q...
2020 Apr 01
2
[RFC PATCH v2] iommu/virtio: Use page size bitmap supported by endpoint
On 2020-04-01 12:38 pm, Bharat Bhushan wrote: > Different endpoint can support different page size, probe > endpoint if it supports specific page size otherwise use > global page sizes. > > Signed-off-by: Bharat Bhushan <bbhushan2 at marvell.com> > --- > drivers/iommu/virtio-iommu.c | 33 +++++++++++++++++++++++++++---- > include/uapi/linux/virtio_iommu.h |
2020 May 14
2
[PATCH v6] iommu/virtio: Use page size bitmap supported by endpoint
...main); > } > > +/* > + * Check whether the endpoint's capabilities are compatible with other > + * endpoints in the domain. Report any inconsistency. This actually has side effects, so _is_ isn't a good name for it. viommu_endpoint_compatible? > + */ > +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, > + struct viommu_domain *vdomain) > +{ > + struct device *dev = vdev->dev; > + u64 pgsize_bitmap; > + > + if (vdomain->viommu != vdev->viommu) { > + dev_err(dev, "cannot attach to foreign vIOMMU\n"); > + return false;...
2020 May 14
2
[PATCH v6] iommu/virtio: Use page size bitmap supported by endpoint
...main); > } > > +/* > + * Check whether the endpoint's capabilities are compatible with other > + * endpoints in the domain. Report any inconsistency. This actually has side effects, so _is_ isn't a good name for it. viommu_endpoint_compatible? > + */ > +static bool viommu_endpoint_is_compatible(struct viommu_endpoint *vdev, > + struct viommu_domain *vdomain) > +{ > + struct device *dev = vdev->dev; > + u64 pgsize_bitmap; > + > + if (vdomain->viommu != vdev->viommu) { > + dev_err(dev, "cannot attach to foreign vIOMMU\n"); > + return false;...