Re: [PATCH] uio: add irq control support to uio_pci_generic

Stephen Hemminger
2015-04-16T21:21:07Z

On Thu, 16 Apr 2015 09:43:24 +0200
"Michael S. Tsirkin" <mst@redhat.com> wrote:

> On Wed, Apr 15, 2015 at 09:59:34AM -0700, Stephen Hemminger wrote:
> > The driver already supported INTX interrupts but had no in kernel
> > function to enable and disable them.
> >
> > It is possible for userspace to do this by accessing PCI config
> > directly, but this racy
>
> How is it racy? We have userspace using this interface,
> if there's a race I want to fix it.

There is nothing to prevent two threads in user space doing
read/modify write at the same time.

The bigger issue is that DPDK needs to support multiple UIO
interface types. And with current model there is no abstraction.
The way to enable/disable IRQ is different depending on the UIO
drivers.