[SLOF] [PATCH slof v3 0/4] virtio: Enable iommu_platform=on

Alexey Kardashevskiy aik at ozlabs.ru
Thu Nov 21 10:57:57 AEDT 2019


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.

v3 changes 1/4 + few cleanups here and there.

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

Please comment and test. Thanks.



Alexey Kardashevskiy (4):
  pci-phb: Reimplement dma-map-in/out
  virtio: Store queue descriptors in virtio_device
  virtio-net: Init queues after features negotiation
  virtio: Enable IOMMU

 board-qemu/slof/Makefile         |   1 +
 lib/libvirtio/virtio-internal.h  |  12 +-
 lib/libvirtio/virtio-net.h       |   2 -
 lib/libvirtio/virtio.h           |  31 +++--
 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    |  82 ++++++------
 lib/libvirtio/virtio.c           | 206 ++++++++++++++++++++-----------
 board-qemu/slof/OF.fs            |   3 +
 board-qemu/slof/pci-phb.fs       |  95 ++++++--------
 slof/fs/dma-instance-function.fs |  28 +++++
 13 files changed, 365 insertions(+), 317 deletions(-)
 create mode 100644 slof/fs/dma-instance-function.fs

-- 
2.17.1



More information about the SLOF mailing list