Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tom Lyon
Date: Thursday, June 3, 2010 - 2:41 pm

OK, in the interest of making progress, I am about to embark on the following:

1. Create a user-iommu-domain driver - opening it will give a new empty domain.
    Ultimately this can also populate sysfs with the state of its world, which would
    also be a good addition to the base iommu stuff.
    If someone closes the fd while in use, the domain stays valid anyway until users
    drop off.

2. Add DOMAIN_SET and DOMAIN_UNSET ioctls to the vfio driver.  Require that
   a domain be set before using the VFIO_DMA_MAP_IOVA ioctl (this is the one
   that KVM wants).  However, the VFIO_DMA_MAP_ANYWHERE ioctl is the one
   which uses the dma_sg interface which has no expicit control of domains. I
   intend to keep it the way it is, but expect only non-hypervisor programs would
   want to use it.

3. Clean up the docs and other nits that folks have found.

Comments? 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Sun May 30, 5:19 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Sun May 30, 5:49 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Sun May 30, 6:03 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Sun May 30, 7:53 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Mon May 31, 10:10 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Tue Jun 1, 3:46 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 2:53 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 3:09 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 3:15 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 3:21 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 3:38 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 3:44 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 4:21 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 5:34 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Wed Jun 2, 6:17 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Tom Lyon, (Thu Jun 3, 2:41 pm)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Sun Jun 6, 2:54 am)
Re: [PATCH] VFIO driver: Non-privileged user level PCI drivers, Michael S. Tsirkin, (Tue Jun 8, 2:22 pm)