Skip to content

riscv: QEMU RISC-V IOMMU support

Daniel Henrique Barboza qemu-devel qemu-riscv 9 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest12 patches 1 replyApplied
  2. v912 patches 3 repliesSuperseded
  3. v812 patches 7 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v712 patches3 repliesApplied
v612 patches22 repliesSuperseded
v513 patches17 repliesSuperseded
v414 patches12 repliesSuperseded
v313 patches24 repliesSuperseded
v215 patches39 repliesSuperseded

Changes in v10 from the cover letter

- patch 3:
- fixed cmd.dword1 alignment in riscv_iommu_process_cq_tail()
- patch 8:
- fixed cmd.dword1 alignment in riscv_iommu_process_cq_tail()
- v9 link: https://lore.kernel.org/qemu-riscv/[email protected]/

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/12exec/memtxattr: add process identifier to the transaction attributesinclude/exec/memattrs.h+5 -00 replies
2/12hw/riscv: add riscv-iommu-bits.hhw/riscv/riscv-iommu-bits.h+345 -00 replies
3/12hw/riscv: add RISC-V IOMMU base emulationhw/riscv/Kconfig hw/riscv/meson.build hw/riscv/riscv-iommu-bits.h +6 more+2222 -00 replies
4/12pci-ids.rst: add Red Hat pci-id for RISC-V IOMMU devicedocs/specs/pci-ids.rst include/hw/pci/pci.h+3 -00 replies
5/12hw/riscv: add riscv-iommu-pci reference devicehw/riscv/meson.build hw/riscv/riscv-iommu-pci.c+203 -10 replies
6/12hw/riscv/virt.c: support for RISC-V IOMMU PCIDevice hotplughw/riscv/virt.c+32 -10 replies
7/12test/qtest: add riscv-iommu-pci teststests/qtest/libqos/meson.build tests/qtest/libqos/riscv-iommu.c tests/qtest/libqos/riscv-iommu.h +2 more+237 -00 replies
8/12hw/riscv/riscv-iommu: add Address Translation Cache (IOATC)hw/riscv/riscv-iommu.c hw/riscv/riscv-iommu.h+203 -40 replies
9/12hw/riscv/riscv-iommu: add ATS supporthw/riscv/riscv-iommu-bits.h hw/riscv/riscv-iommu.c hw/riscv/riscv-iommu.h +1 more+171 -30 replies
10/12hw/riscv/riscv-iommu: add DBG supporthw/riscv/riscv-iommu-bits.h hw/riscv/riscv-iommu.c+76 -00 replies
11/12qtest/riscv-iommu-test: add init queues testtests/qtest/libqos/riscv-iommu.h tests/qtest/riscv-iommu-test.c+155 -00 replies
12/12docs/specs: add riscv-iommudocs/specs/index.rst docs/specs/riscv-iommu.rst docs/system/riscv/virt.rst+104 -00 replies

Reviews trailers per patch

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

PatchAlistair FrancisJason ChienFrank ChangGerd Hoffmann
1/12R-b R-b R-b
2/12R-b R-b R-b
3/12A-b R-b
4/12R-b R-b
5/12R-b R-b
6/12R-b R-b
7/12A-b R-b
8/12A-b R-b
9/12A-b R-b
10/12R-b R-b
11/12A-b R-b
12/12R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v10 thread

Cover letter [PATCH v10 00/12] riscv: QEMU RISC-V IOMMU support

Hi,

In this new version we fixed address alignment issues in some command queue commands, pointed out by Jason in v9.

No other changes made. Series based on alistair/riscv-to-apply.next.

All patches reviewed.

Changes from v9:
- patch 3:
- fixed cmd.dword1 alignment in riscv_iommu_process_cq_tail()
- patch 8:
- fixed cmd.dword1 alignment in riscv_iommu_process_cq_tail()
- v9 link: https://lore.kernel.org/qemu-riscv/[email protected]/

Daniel Henrique Barboza (4):
pci-ids.rst: add Red Hat pci-id for RISC-V IOMMU device test/qtest: add riscv-iommu-pci tests qtest/riscv-iommu-test: add init queues test docs/specs: add riscv-iommu

Tomasz Jeznach (8):
exec/memtxattr: add process identifier to the transaction attributes hw/riscv: add riscv-iommu-bits.h
hw/riscv: add RISC-V IOMMU base emulation
hw/riscv: add riscv-iommu-pci reference device hw/riscv/virt.c: support for RISC-V IOMMU PCIDevice hotplug hw/riscv/riscv-iommu: add Address Translation Cache (IOATC) hw/riscv/riscv-iommu: add ATS support hw/riscv/riscv-iommu: add DBG support

 docs/specs/index.rst             |    1 +
 docs/specs/pci-ids.rst           |    2 +
 docs/specs/riscv-iommu.rst       |   90 ++
 docs/system/riscv/virt.rst       |   13 +
 hw/riscv/Kconfig                 |    4 +
 hw/riscv/meson.build             |    1 +
 hw/riscv/riscv-iommu-bits.h      |  421 ++++++
 hw/riscv/riscv-iommu-pci.c       |  202 +++
 hw/riscv/riscv-iommu.c           | 2399 ++++++++++++++++++++++++++++++
 hw/riscv/riscv-iommu.h           |  130 ++
 hw/riscv/trace-events            |   17 +
 hw/riscv/trace.h                 |    1 +
 hw/riscv/virt.c                  |   33 +-
 include/exec/memattrs.h          |    5 +
 include/hw/pci/pci.h             |    1 +
 include/hw/riscv/iommu.h         |   36 +
 meson.build                      |    1 +
 tests/qtest/libqos/meson.build   |    4 +
 tests/qtest/libqos/riscv-iommu.c |   76 +
 tests/qtest/libqos/riscv-iommu.h |  101 ++
 tests/qtest/meson.build          |    1 +
 tests/qtest/riscv-iommu-test.c   |  210 +++
 22 files changed, 3748 insertions(+), 1 deletion(-)
 create mode 100644 docs/specs/riscv-iommu.rst
 create mode 100644 hw/riscv/riscv-iommu-bits.h
 create mode 100644 hw/riscv/riscv-iommu-pci.c
 create mode 100644 hw/riscv/riscv-iommu.c
 create mode 100644 hw/riscv/riscv-iommu.h
 create mode 100644 hw/riscv/trace-events
 create mode 100644 hw/riscv/trace.h
 create mode 100644 include/hw/riscv/iommu.h
 create mode 100644 tests/qtest/libqos/riscv-iommu.c
 create mode 100644 tests/qtest/libqos/riscv-iommu.h
 create mode 100644 tests/qtest/riscv-iommu-test.c
Signature · 1 line
2.45.2