search for: config_virtio_mmio_ops

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

2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
On Thu, Apr 30, 2020 at 04:04:46PM +0530, Srivatsa Vaddagiri wrote: > * Will Deacon <will at kernel.org> [2020-04-30 11:14:32]: > > > > +#ifdef CONFIG_VIRTIO_MMIO_OPS > > > > > > +static struct virtio_mmio_ops *mmio_ops; > > > + > > > +#define virtio_readb(a) mmio_ops->mmio_readl((a)) > > > +#define virtio_readw(a) mmio_ops->mmio_readl((a)) > > > +#define virtio_readl(a) mmio_ops->mmio_readl((a)...
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
...ff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c > index 97d5725..69bfa35 100644 > --- a/drivers/virtio/virtio_mmio.c > +++ b/drivers/virtio/virtio_mmio.c > @@ -100,7 +100,35 @@ struct virtio_mmio_vq_info { > struct list_head node; > }; > > +#ifdef CONFIG_VIRTIO_MMIO_OPS > > +static struct virtio_mmio_ops *mmio_ops; > + > +#define virtio_readb(a) mmio_ops->mmio_readl((a)) > +#define virtio_readw(a) mmio_ops->mmio_readl((a)) > +#define virtio_readl(a) mmio_ops->mmio_readl((a)) > +#define virtio_writeb(val, a) mmio_ops->mmio_writ...
2020 Apr 30
0
[RFC/PATCH 1/1] virtio: Introduce MMIO ops
On 30.04.20 13:11, Srivatsa Vaddagiri wrote: > * Will Deacon <will at kernel.org> [2020-04-30 11:41:50]: > >> On Thu, Apr 30, 2020 at 04:04:46PM +0530, Srivatsa Vaddagiri wrote: >>> If CONFIG_VIRTIO_MMIO_OPS is defined, then I expect this to be unconditionally >>> set to 'magic_qcom_ops' that uses hypervisor-supported interface for IO (for >>> example: message_queue_send() and message_queue_recevie() hypercalls). >> >> Hmm, but then how would such a kernel work as...