diff options
| author | Sunil V L <sunilvl@ventanamicro.com> | 2025-03-22 10:01:37 +0530 |
|---|---|---|
| committer | Alistair Francis <alistair.francis@wdc.com> | 2025-05-19 11:07:13 +1000 |
| commit | d2a88aca766697e8490504313d23002c3315ee93 (patch) | |
| tree | 4342aadef874d5993ea7e74bc7a50f9650f2da2a /include/hw/riscv | |
| parent | 757a34115e7491744a63dfc3d291fd1de5297ee2 (diff) | |
| download | focaccia-qemu-d2a88aca766697e8490504313d23002c3315ee93.tar.gz focaccia-qemu-d2a88aca766697e8490504313d23002c3315ee93.zip | |
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>
Diffstat (limited to 'include/hw/riscv')
| -rw-r--r-- | include/hw/riscv/virt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/riscv/virt.h b/include/hw/riscv/virt.h index 48a14bea2e..7b4c2c8b7d 100644 --- a/include/hw/riscv/virt.h +++ b/include/hw/riscv/virt.h @@ -63,6 +63,7 @@ struct RISCVVirtState { const MemMapEntry *memmap; struct GPEXHost *gpex_host; OnOffAuto iommu_sys; + uint16_t pci_iommu_bdf; }; enum { |