Viresh Kumar
2021-Aug-03 04:30 UTC
[PATCH V4 3/5] dt-bindings: gpio: Add bindings for gpio-virtio
On 02-08-21, 13:40, Rob Herring wrote:> Humm, how does one implement interrupts without a parent interrupt? It > uses the parent virtio,mmio interrupt?Kind of, yeah, but not necessarily. The interrupt information is passed over buffers shared between host and guest. Now the guest may process the buffers when it receives a notification from the host, that will be at downpath of an interrupt for virtio,mmio. Or the guest may poll on the virtqueue and process any buffers as soon as they are made available, no interrupts then. -- viresh
Rob Herring
2021-Aug-03 15:47 UTC
[PATCH V4 3/5] dt-bindings: gpio: Add bindings for gpio-virtio
n Mon, Aug 2, 2021 at 10:30 PM Viresh Kumar <viresh.kumar at linaro.org> wrote:> > On 02-08-21, 13:40, Rob Herring wrote: > > Humm, how does one implement interrupts without a parent interrupt? It > > uses the parent virtio,mmio interrupt? > > Kind of, yeah, but not necessarily. > > The interrupt information is passed over buffers shared between host and guest. > Now the guest may process the buffers when it receives a notification from the > host, that will be at downpath of an interrupt for virtio,mmio. Or the guest may > poll on the virtqueue and process any buffers as soon as they are made > available, no interrupts then.Okay, thanks for the explanation. Reviewed-by: Rob Herring <robh at kernel.org> Rob