hw/riscv/virt: Add IOMMU as platform device if the option is set
authorSunil V L <sunilvl@ventanamicro.com>
Wed, 6 Nov 2024 13:34:04 +0000 (10:34 -0300)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 20 Dec 2024 01:19:16 +0000 (11:19 +1000)
commit2c12de146071beca8021d71cf2ac49bde36b2c8e
treedee65cd354039cb7dea74b1764ac82cdde03f921
parent5b128435dcf1e6545b544e3e402470ecf5b45ac7
hw/riscv/virt: Add IOMMU as platform device if the option is set

Add a new machine option called 'iommu-sys' that enables a
riscv-iommu-sys platform device for the 'virt' machine. The option is
default 'off'.

The device will use IRQs 36 to 39.

We will not support both riscv-iommu-sys and riscv-iommu-pci devices in
the same board in this first implementation. If a riscv-iommu-pci device
is added in the command line we will disable the riscv-iommu-sys device.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20241106133407.604587-5-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/virt.c
include/hw/riscv/iommu.h
include/hw/riscv/virt.h