linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] vfio: blacklist legacy virtio devices
@ 2016-08-30  2:27 Michael S. Tsirkin
  2016-08-30  2:27 ` [PATCH v2 1/2] vfio: report group noiommu status Michael S. Tsirkin
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Michael S. Tsirkin @ 2016-08-30  2:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: Jason Wang, Alex Williamson, Cornelia Huck, virtualization,
	qemu-devel, kvm

Legacy virtio devices always bypassed an IOMMU, so using them with vfio was
never safe.  This adds a quirk detecting these and disabling VFIO unless the
noiommu mode is used.  At the moment, this only applies to virtio-pci devices.

The patch might make sense on stable as well.

Michael S. Tsirkin (2):
  vfio: report group noiommu status
  vfio: add virtio pci quirk

 drivers/vfio/pci/vfio_pci_private.h |   1 +
 include/linux/vfio.h                |   2 +
 drivers/vfio/pci/vfio_pci.c         |  14 ++++
 drivers/vfio/pci/vfio_pci_virtio.c  | 140 ++++++++++++++++++++++++++++++++++++
 drivers/vfio/vfio.c                 |  12 ++++
 drivers/vfio/pci/Makefile           |   1 +
 6 files changed, 170 insertions(+)
 create mode 100644 drivers/vfio/pci/vfio_pci_virtio.c

-- 
MST

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

end of thread, other threads:[~2016-08-30 12:46 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30  2:27 [PATCH v2 0/2] vfio: blacklist legacy virtio devices Michael S. Tsirkin
2016-08-30  2:27 ` [PATCH v2 1/2] vfio: report group noiommu status Michael S. Tsirkin
2016-08-30  2:27 ` [PATCH v2 2/2] vfio: add virtio pci quirk Michael S. Tsirkin
2016-08-30  3:23   ` Alex Williamson
2016-08-30  3:48     ` Michael S. Tsirkin
2016-08-30  3:52     ` Alex Williamson
2016-08-30  3:57       ` Michael S. Tsirkin
2016-08-30  4:53       ` Alex Williamson
2016-08-30  5:20         ` Michael S. Tsirkin
2016-08-30 12:46           ` Alex Williamson
2016-08-30  9:59   ` kbuild test robot
2016-08-30  3:16 ` [Qemu-devel] [PATCH v2 0/2] vfio: blacklist legacy virtio devices Jason Wang
2016-08-30  3:49   ` Michael S. Tsirkin

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