Skip to content

hw/riscv: riscv-iommu-sys device

Daniel Henrique Barboza qemu-devel qemu-riscv 1 version Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7hw/riscv/riscv-iommu.c: add riscv_iommu_instance_init()hw/riscv/riscv-iommu.c+39 -321 reply
2/7hw/riscv/riscv-iommu: parametrize CAP.IGShw/riscv/riscv-iommu-bits.h hw/riscv/riscv-iommu-pci.c hw/riscv/riscv-iommu.c +1 more+16 -01 reply
3/7hw/riscv: add riscv-iommu-sys platform devicehw/riscv/meson.build hw/riscv/riscv-iommu-sys.c hw/riscv/riscv-iommu.c +1 more+134 -31 reply
4/7hw/riscv/virt: Add IOMMU as platform device if the option is sethw/riscv/virt.c include/hw/riscv/iommu.h include/hw/riscv/virt.h+109 -31 reply
5/7hw/riscv/virt.c, riscv-iommu-sys.c: add MSIx supporthw/riscv/riscv-iommu-sys.c hw/riscv/trace-events hw/riscv/virt.c+119 -51 reply
6/7hw/riscv/riscv-iommu: implement reset protocolhw/riscv/riscv-iommu-pci.c hw/riscv/riscv-iommu-sys.c hw/riscv/riscv-iommu.c +3 more+82 -21 reply
7/7docs/specs: add riscv-iommu-sys informationdocs/specs/riscv-iommu.rst docs/system/riscv/virt.rst+37 -31 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchAlistair Francis
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7A-b
6/7A-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH for-10.0 0/7] hw/riscv: riscv-iommu-sys device

Hi,

Now that we have merged the base IOMMU support we can re-introduce the riscv-iommu-sys platform device that was taken away from the initial posting.

Aside from adding support for the device in the 'virt' machine we're also adding MSI support for it, something that we weren't doing before. The Linux driver is then free to choose either MSI or WSI to use the device.

Patches based on master.

Daniel Henrique Barboza (5):
hw/riscv/riscv-iommu.c: add riscv_iommu_instance_init() hw/riscv/riscv-iommu: parametrize CAP.IGS hw/riscv/virt.c, riscv-iommu-sys.c: add MSIx support hw/riscv/riscv-iommu: implement reset protocol docs/specs: add riscv-iommu-sys information

Sunil V L (1):
hw/riscv/virt: Add IOMMU as platform device if the option is set

Tomasz Jeznach (1):
hw/riscv: add riscv-iommu-sys platform device

 docs/specs/riscv-iommu.rst  |  30 ++++-
 docs/system/riscv/virt.rst  |  10 ++
 hw/riscv/meson.build        |   2 +-
 hw/riscv/riscv-iommu-bits.h |   6 +
 hw/riscv/riscv-iommu-pci.c  |  21 +++
 hw/riscv/riscv-iommu-sys.c  | 256 ++++++++++++++++++++++++++++++++++++
 hw/riscv/riscv-iommu.c      | 114 +++++++++++-----
 hw/riscv/riscv-iommu.h      |   5 +
 hw/riscv/trace-events       |   4 +
 hw/riscv/virt.c             | 108 ++++++++++++++-
 include/hw/riscv/iommu.h    |  10 +-
 include/hw/riscv/virt.h     |   6 +-
 12 files changed, 530 insertions(+), 42 deletions(-)
 create mode 100644 hw/riscv/riscv-iommu-sys.c
Signature · 1 line
2.45.2