lkml.org 
[lkml]   [2015]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 2/3] uio_pci_generic: add MSI/MSI-X support
On Thu, Oct 08, 2015 at 07:19:13AM +0300, Gleb Natapov wrote:
> Well
> the alternative is to add /dev/vfio/nommu like you've said, but what
> would be the difference between this and uio eludes me.

Are you familiar with vfio that you ask such a question?

Here's the vfio pci code:

$ wc -l drivers/vfio/pci/*
27 drivers/vfio/pci/Kconfig
4 drivers/vfio/pci/Makefile
1217 drivers/vfio/pci/vfio_pci.c
1602 drivers/vfio/pci/vfio_pci_config.c
675 drivers/vfio/pci/vfio_pci_intrs.c
92 drivers/vfio/pci/vfio_pci_private.h
238 drivers/vfio/pci/vfio_pci_rdwr.c
3855 total

There's some code dealing with iommu groups in
drivers/vfio/pci/vfio_pci.c,
but most of it is validating input and
presenting a consistent interface to userspace.

This is exactly what's missing here.

There's also drivers/vfio/virqfd.c which deals
with sending interrupts over eventfds correctly.

--
MST


\
 
 \ /
  Last update: 2015-10-08 10:01    [W:0.139 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site