Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1472200

[PATCH v2 0/2] vfio: blacklist legacy virtio devices

From "Michael S. Tsirkin" <mst@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 0/2] vfio: blacklist legacy virtio devices
Date 2016-08-30 04:30 +0200
Message-ID <sbGYh-7dn-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH v2 0/2] vfio: blacklist legacy virtio devices "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 04:30 +0200
  [PATCH v2 2/2] vfio: add virtio pci quirk "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 04:30 +0200
    Re: [PATCH v2 2/2] vfio: add virtio pci quirk Alex Williamson <alex.williamson@redhat.com> - 2016-08-30 05:30 +0200
      Re: [PATCH v2 2/2] vfio: add virtio pci quirk "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 05:50 +0200
      Re: [PATCH v2 2/2] vfio: add virtio pci quirk "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 06:00 +0200
      Re: [PATCH v2 2/2] vfio: add virtio pci quirk Alex Williamson <alex.williamson@redhat.com> - 2016-08-30 06:00 +0200
        Re: [PATCH v2 2/2] vfio: add virtio pci quirk Alex Williamson <alex.williamson@redhat.com> - 2016-08-30 07:00 +0200
          Re: [PATCH v2 2/2] vfio: add virtio pci quirk "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 07:30 +0200
            Re: [PATCH v2 2/2] vfio: add virtio pci quirk Alex Williamson <alex.williamson@redhat.com> - 2016-08-30 14:50 +0200
  [PATCH v2 1/2] vfio: report group noiommu status "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 04:30 +0200
  Re: [Qemu-devel] [PATCH v2 0/2] vfio: blacklist legacy virtio devices Jason Wang <jasowang@redhat.com> - 2016-08-30 05:20 +0200
    Re: [Qemu-devel] [PATCH v2 0/2] vfio: blacklist legacy virtio devices "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-30 06:00 +0200

csiph-web