qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v6 0/4] Add Mediated device support
@ 2016-08-03 19:03 Kirti Wankhede
  2016-08-03 19:03 ` [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver Kirti Wankhede
                   ` (3 more replies)
  0 siblings, 4 replies; 53+ messages in thread
From: Kirti Wankhede @ 2016-08-03 19:03 UTC (permalink / raw)
  To: alex.williamson, pbonzini, kraxel, cjia
  Cc: qemu-devel, kvm, kevin.tian, jike.song, bjsdjshi, Kirti Wankhede

This series adds Mediated device support to Linux host kernel. Purpose
of this series is to provide a common interface for mediated device
management that can be used by different devices. This series introduces
Mdev core module that create and manage mediated devices, VFIO based driver
for mediated PCI devices that are created by Mdev core module and update
VFIO type1 IOMMU module to support mediated devices.

What's new in v6?
- Removed per mdev_device lock for registration callbacks. Vendor driver should
  implement locking if they need to serialize registration callbacks.
- Added mapped region tracking logic and invalidation function to be used by
  vendor driver.
- Moved vfio_pin_pages and vfio_unpin_pages API from IOMMU type1 driver to vfio
  driver. Added callbacks to vfio ops structure to support pin and unpin APIs in
  backend iommu module.
- Used uuid_le_to_bin() to parse UUID string and convert to bin. This requires
  following commits from linux master branch:
* commit bc9dc9d5eec908806f1b15c9ec2253d44dcf7835 :
	lib/uuid.c: use correct offset in uuid parser
* commit 2b1b0d66704a8cafe83be7114ec4c15ab3a314ad :
	lib/uuid.c: introduce a few more generic helpers
- Requires below commits from linux master branch for mmap region fault handler
  that uses remap_pfn_range() to setup EPT properly.
* commit add6a0cd1c5ba51b201e1361b05a5df817083618
	KVM: MMU: try to fix up page faults before giving up
* commit 92176a8ede577d0ff78ab3298e06701f67ad5f51 :
	KVM: MMU: prepare to support mapping of VM_IO and VM_PFNMAP frames

Tested:
- Single vGPU VM
- Multiple vGPU VMs on same GPU


Thanks,
Kirti


Kirti Wankhede (4):
  vfio: Mediated device Core driver
  vfio: VFIO driver for mediated PCI device
  vfio iommu: Add support for mediated devices
  docs: Add Documentation for Mediated devices

 Documentation/vfio-mediated-device.txt | 235 ++++++++++++
 drivers/vfio/Kconfig                   |   1 +
 drivers/vfio/Makefile                  |   1 +
 drivers/vfio/mdev/Kconfig              |  18 +
 drivers/vfio/mdev/Makefile             |   6 +
 drivers/vfio/mdev/mdev_core.c          | 676 +++++++++++++++++++++++++++++++++
 drivers/vfio/mdev/mdev_driver.c        | 142 +++++++
 drivers/vfio/mdev/mdev_private.h       |  33 ++
 drivers/vfio/mdev/mdev_sysfs.c         | 269 +++++++++++++
 drivers/vfio/mdev/vfio_mpci.c          | 536 ++++++++++++++++++++++++++
 drivers/vfio/pci/vfio_pci_private.h    |   6 -
 drivers/vfio/pci/vfio_pci_rdwr.c       |   1 +
 drivers/vfio/vfio.c                    |  82 ++++
 drivers/vfio/vfio_iommu_type1.c        | 499 +++++++++++++++++++++---
 include/linux/mdev.h                   | 236 ++++++++++++
 include/linux/vfio.h                   |  20 +-
 16 files changed, 2707 insertions(+), 54 deletions(-)
 create mode 100644 Documentation/vfio-mediated-device.txt
 create mode 100644 drivers/vfio/mdev/Kconfig
 create mode 100644 drivers/vfio/mdev/Makefile
 create mode 100644 drivers/vfio/mdev/mdev_core.c
 create mode 100644 drivers/vfio/mdev/mdev_driver.c
 create mode 100644 drivers/vfio/mdev/mdev_private.h
 create mode 100644 drivers/vfio/mdev/mdev_sysfs.c
 create mode 100644 drivers/vfio/mdev/vfio_mpci.c
 create mode 100644 include/linux/mdev.h

-- 
2.7.0

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

end of thread, other threads:[~2016-08-24 22:36 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-03 19:03 [Qemu-devel] [PATCH v6 0/4] Add Mediated device support Kirti Wankhede
2016-08-03 19:03 ` [Qemu-devel] [PATCH v6 1/4] vfio: Mediated device Core driver Kirti Wankhede
2016-08-04  7:21   ` Tian, Kevin
2016-08-05  6:13     ` Kirti Wankhede
2016-08-15  9:15       ` Tian, Kevin
2016-08-09 19:00   ` Alex Williamson
2016-08-12 18:44     ` Kirti Wankhede
2016-08-12 21:16       ` Alex Williamson
2016-08-13  0:37         ` Kirti Wankhede
2016-08-15  9:38           ` Tian, Kevin
2016-08-15 15:59             ` Alex Williamson
2016-08-15 22:09               ` Neo Jia
2016-08-15 22:52                 ` Alex Williamson
2016-08-15 23:23                   ` Neo Jia
2016-08-16  0:49                     ` Tian, Kevin
2016-08-15 19:59             ` Neo Jia
2016-08-15 22:47               ` Alex Williamson
2016-08-15 23:54                 ` Neo Jia
2016-08-16  0:18                 ` Tian, Kevin
2016-08-16 20:30                 ` Neo Jia
2016-08-16 20:51                   ` Alex Williamson
2016-08-16 21:17                     ` Neo Jia
2016-08-16  0:30               ` Tian, Kevin
2016-08-16  3:45                 ` Neo Jia
2016-08-16  3:50                   ` Tian, Kevin
2016-08-16  4:16                     ` Neo Jia
2016-08-16  4:52                       ` Tian, Kevin
2016-08-16  5:43                         ` Neo Jia
2016-08-16  5:58                           ` Tian, Kevin
2016-08-16  6:13                             ` Neo Jia
2016-08-16 21:03                               ` Alex Williamson
2016-08-16 12:49                         ` Alex Williamson
2016-08-03 19:03 ` [Qemu-devel] [PATCH v6 2/4] vfio: VFIO driver for mediated PCI device Kirti Wankhede
2016-08-03 21:03   ` kbuild test robot
2016-08-04  0:19   ` kbuild test robot
2016-08-09 19:00   ` Alex Williamson
2016-08-10 21:23     ` Kirti Wankhede
2016-08-10 23:00       ` Alex Williamson
2016-08-11 15:59         ` Kirti Wankhede
2016-08-11 16:24           ` Alex Williamson
2016-08-11 17:46             ` Kirti Wankhede
2016-08-11 18:43               ` Alex Williamson
2016-08-12 17:57                 ` Kirti Wankhede
2016-08-12 21:25                   ` Alex Williamson
2016-08-13  0:42                     ` Kirti Wankhede
2016-08-03 19:03 ` [Qemu-devel] [PATCH v6 3/4] vfio iommu: Add support for mediated devices Kirti Wankhede
2016-08-09 19:00   ` Alex Williamson
2016-08-11 14:22     ` Kirti Wankhede
2016-08-11 16:28       ` Alex Williamson
2016-08-03 19:03 ` [Qemu-devel] [PATCH v6 4/4] docs: Add Documentation for Mediated devices Kirti Wankhede
2016-08-04  7:31   ` Tian, Kevin
2016-08-05  7:45     ` Kirti Wankhede
2016-08-24 22:36   ` Daniel P. Berrange

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).