]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/riscv/virt: Add the BDF of IOMMU to RISCVVirtState structure
authorSunil V L <sunilvl@ventanamicro.com>
Sat, 22 Mar 2025 04:31:37 +0000 (10:01 +0530)
committerAlistair Francis <alistair.francis@wdc.com>
Mon, 19 May 2025 01:07:13 +0000 (11:07 +1000)
commitd2a88aca766697e8490504313d23002c3315ee93
tree4342aadef874d5993ea7e74bc7a50f9650f2da2a
parent757a34115e7491744a63dfc3d291fd1de5297ee2
hw/riscv/virt: Add the BDF of IOMMU to RISCVVirtState structure

When the IOMMU is implemented as a PCI device, its BDF is created
locally in virt.c. However, the same BDF is also required in
virt-acpi-build.c to support ACPI. Therefore, make this information part
of the global RISCVVirtState structure so that it can be accessed
outside of virt.c as well.

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