mbox series

[v4,0/5] virtio: Enable iommu_platform=on

Message ID 20191204032138.127624-1-aik@ozlabs.ru
Headers show
Series virtio: Enable iommu_platform=on | expand

Message

Alexey Kardashevskiy Dec. 4, 2019, 3:21 a.m. UTC
This is my current queue of patches to enable IOMMU for virtio
which is going to be required for secure guests, and is a right
thing to do in general.

In order to enable IOMMU, add this to a virtio-pci device:

-device virtio-blk-pci,iommu_platform=off,disable-modern=off,disable-legacy=on

This is based on sha1
8c6d46821071 Thomas Huth "ipv6: Fix gcc9 warnings".

Please comment. Thanks.



Alexey Kardashevskiy (5):
  pci-phb: Reimplement dma-map-in/out
  virtio: Store queue descriptors in virtio_device
  virtio-net: Init queues after features negotiation
  dma: Define default dma methods for using by client/package instances
  virtio: Enable IOMMU

 board-qemu/slof/Makefile         |   1 +
 lib/libvirtio/virtio-internal.h  |  12 +-
 lib/libvirtio/virtio-net.h       |   2 -
 lib/libvirtio/virtio.h           |  30 +++--
 lib/libvirtio/virtio-9p.c        |  41 +++---
 lib/libvirtio/virtio-blk.c       |  56 ++++-----
 lib/libvirtio/virtio-net.c       |  53 ++++----
 lib/libvirtio/virtio-scsi.c      |  72 +++++------
 lib/libvirtio/virtio-serial.c    |  88 ++++++-------
 lib/libvirtio/virtio.c           | 207 ++++++++++++++++++++-----------
 board-qemu/slof/OF.fs            |   3 +
 board-qemu/slof/pci-phb.fs       |  95 ++++++--------
 slof/fs/dma-instance-function.fs |  28 +++++
 13 files changed, 366 insertions(+), 322 deletions(-)
 create mode 100644 slof/fs/dma-instance-function.fs

Comments

Alexey Kardashevskiy Dec. 5, 2019, 4:21 a.m. UTC | #1
On 04/12/2019 14:21, Alexey Kardashevskiy wrote:
> This is my current queue of patches to enable IOMMU for virtio
> which is going to be required for secure guests, and is a right
> thing to do in general.
> 
> In order to enable IOMMU, add this to a virtio-pci device:
> 
> -device virtio-blk-pci,iommu_platform=off,disable-modern=off,disable-legacy=on
> 
> This is based on sha1
> 8c6d46821071 Thomas Huth "ipv6: Fix gcc9 warnings".
> 
> Please comment. Thanks.



I am pushing out 1/5..4/5, thanks for the reviews.

> 
> 
> 
> Alexey Kardashevskiy (5):
>   pci-phb: Reimplement dma-map-in/out
>   virtio: Store queue descriptors in virtio_device
>   virtio-net: Init queues after features negotiation
>   dma: Define default dma methods for using by client/package instances
>   virtio: Enable IOMMU
> 
>  board-qemu/slof/Makefile         |   1 +
>  lib/libvirtio/virtio-internal.h  |  12 +-
>  lib/libvirtio/virtio-net.h       |   2 -
>  lib/libvirtio/virtio.h           |  30 +++--
>  lib/libvirtio/virtio-9p.c        |  41 +++---
>  lib/libvirtio/virtio-blk.c       |  56 ++++-----
>  lib/libvirtio/virtio-net.c       |  53 ++++----
>  lib/libvirtio/virtio-scsi.c      |  72 +++++------
>  lib/libvirtio/virtio-serial.c    |  88 ++++++-------
>  lib/libvirtio/virtio.c           | 207 ++++++++++++++++++++-----------
>  board-qemu/slof/OF.fs            |   3 +
>  board-qemu/slof/pci-phb.fs       |  95 ++++++--------
>  slof/fs/dma-instance-function.fs |  28 +++++
>  13 files changed, 366 insertions(+), 322 deletions(-)
>  create mode 100644 slof/fs/dma-instance-function.fs
>