search for: symbol_get

Displaying 6 results from an estimated 6 matches for "symbol_get".

2015 Jul 29
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...e 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(); } Awful, but that's what this thing is. Paolo
2015 Jul 29
2
[PATCH v4 0/4] virtio: Clean up scatterlists and use the DMA API
...e 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(); } Awful, but that's what this thing is. Paolo
2013 Mar 13
1
vhost questions.
...to create the skb, and have a special interface to inject it directly. This way we can handle the UIO_MAXIOV limit ourselves (eg. by not doing zero copy on such stupid cases). 6) By calling tun_get_socket() and macvtap_get_socket() we are forcing those modules to load. We should use symbol_get() to avoid this. In short, this code is a mess. Assuming we can't just break the API, we've got a long process ahead of us to get it into shape :( Thanks, Rusty.
2013 Mar 13
1
vhost questions.
...to create the skb, and have a special interface to inject it directly. This way we can handle the UIO_MAXIOV limit ourselves (eg. by not doing zero copy on such stupid cases). 6) By calling tun_get_socket() and macvtap_get_socket() we are forcing those modules to load. We should use symbol_get() to avoid this. In short, this code is a mess. Assuming we can't just break the API, we've got a long process ahead of us to get it into shape :( Thanks, Rusty.
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