qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 00/13] riscv: QEMU RISC-V IOMMU Support
@ 2024-07-08 17:34 Daniel Henrique Barboza
  2024-07-08 17:34 ` [PATCH v5 01/13] exec/memtxattr: add process identifier to the transaction attributes Daniel Henrique Barboza
                   ` (12 more replies)
  0 siblings, 13 replies; 30+ messages in thread
From: Daniel Henrique Barboza @ 2024-07-08 17:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, alistair.francis, bmeng, liwei1518, zhiwei_liu,
	palmer, frank.chang, tjeznach, jason.chien,
	Daniel Henrique Barboza

Hi,

In this new version changes based on the suggestions made in v4 were
made.

The most notable change, however, is the merge of patches 3 (base IOMMU
emulation and 9 (s-stage and g-stage) from v4 into a single patch. There
were several instances throughout the revisions of this work where a
comment made in patch 3 was relevant or made obsolete by patch 9. Having
them merged together in a single patch will put all the translation code
in a single patch, making it easier to review the whole picture.

Series based on alistair/riscv-to-apply.next. It's also applicable on
top of master.

Patches missing acks: 3, 13.

Changes from v4:
- patch 1:
  - renamed MemTxAttrs.pasid to MemTxAttrs.pid 
- patch 2:
  - removed qemu/osdep.h include from riscv-iommu-bits.h
- patch 3:
  - squashed with patch 9 ("hw/riscv/riscv-iommu: add s-stage and g-stage support")
  - renamed 'pasid_bits' to 'pid_bits'
  - added "!s->enable_msi" check to riscv_iommu_msi_check()
  - removed riscv_iommu_msi_check() from riscv_iommu_msi_write()
- patch 13 (former 14):
  - added information on all configuration parameters in the doc
- v4 link: https://lore.kernel.org/qemu-riscv/20240624201825.1054980-1-dbarboza@ventanamicro.com/


Andrew Jones (1):
  hw/riscv/riscv-iommu: Add another irq for mrif notifications

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       |   55 +
 docs/system/riscv/virt.rst       |   13 +
 hw/riscv/Kconfig                 |    4 +
 hw/riscv/meson.build             |    1 +
 hw/riscv/riscv-iommu-bits.h      |  417 ++++++
 hw/riscv/riscv-iommu-pci.c       |  178 +++
 hw/riscv/riscv-iommu.c           | 2370 ++++++++++++++++++++++++++++++
 hw/riscv/riscv-iommu.h           |  148 ++
 hw/riscv/trace-events            |   15 +
 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 |  100 ++
 tests/qtest/meson.build          |    1 +
 tests/qtest/riscv-iommu-test.c   |  234 +++
 22 files changed, 3695 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

-- 
2.45.2



^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-07-31 19:18 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-08 17:34 [PATCH v5 00/13] riscv: QEMU RISC-V IOMMU Support Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 01/13] exec/memtxattr: add process identifier to the transaction attributes Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 02/13] hw/riscv: add riscv-iommu-bits.h Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 03/13] hw/riscv: add RISC-V IOMMU base emulation Daniel Henrique Barboza
2024-07-18  4:37   ` Alistair Francis
2024-07-25 12:57     ` Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 04/13] pci-ids.rst: add Red Hat pci-id for RISC-V IOMMU device Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 05/13] hw/riscv: add riscv-iommu-pci reference device Daniel Henrique Barboza
2024-07-18  4:42   ` Alistair Francis
2024-07-18  7:06   ` Jason Chien
2024-07-24 21:39     ` Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 06/13] hw/riscv/virt.c: support for RISC-V IOMMU PCIDevice hotplug Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 07/13] test/qtest: add riscv-iommu-pci tests Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 08/13] hw/riscv/riscv-iommu: add Address Translation Cache (IOATC) Daniel Henrique Barboza
2024-07-18  4:50   ` Alistair Francis
2024-07-08 17:34 ` [PATCH v5 09/13] hw/riscv/riscv-iommu: add ATS support Daniel Henrique Barboza
2024-07-19  3:43   ` Alistair Francis
2024-07-08 17:34 ` [PATCH v5 10/13] hw/riscv/riscv-iommu: add DBG support Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 11/13] hw/riscv/riscv-iommu: Add another irq for mrif notifications Daniel Henrique Barboza
2024-07-23 15:25   ` Jason Chien
2024-07-31 16:27     ` Daniel Henrique Barboza
2024-07-31 16:50       ` Andrew Jones
2024-07-31 17:21         ` Daniel Henrique Barboza
2024-07-08 17:34 ` [PATCH v5 12/13] qtest/riscv-iommu-test: add init queues test Daniel Henrique Barboza
2024-07-19  9:32   ` Alistair Francis
2024-07-08 17:35 ` [PATCH v5 13/13] docs/specs: add riscv-iommu Daniel Henrique Barboza
2024-07-19  9:34   ` Alistair Francis
2024-07-24 12:56     ` Daniel Henrique Barboza
2024-07-25  3:41       ` Alistair Francis
2024-07-31 19:17     ` Daniel Henrique Barboza

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).