search for: is_ultravisor_platform

Displaying 3 results from an estimated 3 matches for "is_ultravisor_platform".

2018 Jul 20
3
[RFC 4/4] virtio: Add platform specific DMA API translation for virito devices
On Fri, Jul 20, 2018 at 09:29:41AM +0530, Anshuman Khandual wrote: >Subject: Re: [RFC 4/4] virtio: Add platform specific DMA API translation for > virito devices s/virito/virtio/ > This adds a hook which a platform can define in order to allow it to > override virtio device's DMA OPS irrespective of whether it has the > flag VIRTIO_F_IOMMU_PLATFORM set or not. We want to use
2018 Jul 20
3
[RFC 4/4] virtio: Add platform specific DMA API translation for virito devices
On Fri, Jul 20, 2018 at 09:29:41AM +0530, Anshuman Khandual wrote: >Subject: Re: [RFC 4/4] virtio: Add platform specific DMA API translation for > virito devices s/virito/virtio/ > This adds a hook which a platform can define in order to allow it to > override virtio device's DMA OPS irrespective of whether it has the > flag VIRTIO_F_IOMMU_PLATFORM set or not. We want to use
2018 Jul 23
0
[RFC 4/4] virtio: Add platform specific DMA API translation for virito devices
...here virtio_has_iommu_quirk is called now? Not other than this one. But in the proposed implementation of platform_override_dma_ops on powerpc, we will again check on virtio_has_iommu_quirk before overriding it with SWIOTLB. void platform_override_dma_ops(struct virtio_device *vdev) { if (is_ultravisor_platform() && virtio_has_iommu_quirk(vdev)) set_dma_ops(vdev->dev.parent, &swiotlb_dma_ops); } > If so, we could put this into virtio_has_iommu_quirk then. Did you mean platform_override_dma_ops instead ? If so, yes that is possible. Default implementation of platform_ove...