linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/1] VFIO: Region-specific file descriptors
@ 2019-09-30 23:55 Shawn Anastasio
  2019-09-30 23:55 ` [PATCH RFC 1/1] vfio/pci: Introduce region " Shawn Anastasio
  2019-10-01 15:38 ` [PATCH RFC 0/1] VFIO: Region-specific " Alex Williamson
  0 siblings, 2 replies; 4+ messages in thread
From: Shawn Anastasio @ 2019-09-30 23:55 UTC (permalink / raw)
  To: alex.williamson, kvm; +Cc: cohuck, linux-kernel

This patch adds region file descriptors to VFIO, a simple file descriptor type
that allows read/write/mmap operations on a single region of a VFIO device.

This feature is particularly useful for privileged applications that use VFIO
and wish to share file descriptors with unprivileged applications without
handing over full control of the device. It also allows applications to use
regular offsets in read/write/mmap instead of the region index + offset that
must be used with device file descriptors.

The current implementation is very raw (PCI only, no reference counting which
is probably wrong), but I wanted to get a sense to see if this feature is
desired. If it is, tips on how to implement this more correctly are
appreciated.

Comments welcome!


Shawn Anastasio (1):
  vfio/pci: Introduce region file descriptors

 drivers/vfio/pci/vfio_pci.c         | 105 ++++++++++++++++++++++++++++
 drivers/vfio/pci/vfio_pci_private.h |   5 ++
 include/uapi/linux/vfio.h           |  14 ++++
 3 files changed, 124 insertions(+)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-02 21:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 23:55 [PATCH RFC 0/1] VFIO: Region-specific file descriptors Shawn Anastasio
2019-09-30 23:55 ` [PATCH RFC 1/1] vfio/pci: Introduce region " Shawn Anastasio
2019-10-01 15:38 ` [PATCH RFC 0/1] VFIO: Region-specific " Alex Williamson
2019-10-02 21:57   ` Shawn Anastasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).