RISC-V IO Mapping Table (RIMT) is a new static ACPI table used to communicate IOMMU and topology information to the OS. Add support for creating this table when the IOMMU is present. The specification is frozen and available at [1].
[1] - https://github.com/riscv-non-isa/riscv-acpi-rimt/releases/download/v0.99/rimt-spec.pdf Changes since v1: 1) Used g_autoptr as per Daniel's suggestion. 2) Added R-b tag from Daniel. Sunil V L (2): hw/riscv/virt: Add the BDF of IOMMU to RISCVVirtState structure hw/riscv/virt-acpi-build: Add support for RIMT hw/riscv/virt-acpi-build.c | 215 +++++++++++++++++++++++++++++++++++++ hw/riscv/virt.c | 1 + include/hw/riscv/virt.h | 1 + 3 files changed, 217 insertions(+) -- 2.43.0