search for: virtio_should_bypass_iommu

Displaying 4 results from an estimated 4 matches for "virtio_should_bypass_iommu".

2015 Jul 29
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...ug in QEMU; it has to be fixed to use the right address space, and then whatever the system provides to describe "the right address space" can be used (like the DMAR table on x86). On PPC I suppose you could use the host bridge's device tree? If you need a hook, you can add a bool virtio_should_bypass_iommu(void) { /* lookup something in the device tree?!? */ } EXPORT_SYMBOL_GPL(virtio_should_bypass_iommu); in some pseries.c file, and in the driver: static bool virtio_bypass_iommu(void) { bool (*fn)(void); fn = symbol_get(virtio_should_bypass_iommu); return fn && fn(); } Awf...
2015 Jul 29
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...ug in QEMU; it has to be fixed to use the right address space, and then whatever the system provides to describe "the right address space" can be used (like the DMAR table on x86). On PPC I suppose you could use the host bridge's device tree? If you need a hook, you can add a bool virtio_should_bypass_iommu(void) { /* lookup something in the device tree?!? */ } EXPORT_SYMBOL_GPL(virtio_should_bypass_iommu); in some pseries.c file, and in the driver: static bool virtio_bypass_iommu(void) { bool (*fn)(void); fn = symbol_get(virtio_should_bypass_iommu); return fn && fn(); } Awf...
2015 Jul 29
3
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
On Tue, 2015-07-28 at 16:33 -0700, Andy Lutomirski wrote: > On Tue, Jul 28, 2015 at 4:21 PM, Benjamin Herrenschmidt > <benh at kernel.crashing.org> wrote: > > On Tue, 2015-07-28 at 15:43 -0700, Andy Lutomirski wrote: > >> Let me try to summarize a proposal: > >> > >> Add a feature flag that indicates IOMMU support. > >> > >> New
2015 Jul 29
3
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
On Tue, 2015-07-28 at 16:33 -0700, Andy Lutomirski wrote: > On Tue, Jul 28, 2015 at 4:21 PM, Benjamin Herrenschmidt > <benh at kernel.crashing.org> wrote: > > On Tue, 2015-07-28 at 15:43 -0700, Andy Lutomirski wrote: > >> Let me try to summarize a proposal: > >> > >> Add a feature flag that indicates IOMMU support. > >> > >> New