From: Eric Auger Date: Mon, 14 Jul 2025 08:05:09 +0000 (+0200) Subject: hw/arm/virt: Pass the bus on the ged creation X-Git-Tag: v10.1.0-rc0~19^2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1913b8e68670223cfe8101c332a3b903031fc4d2;p=thirdparty%2Fqemu.git hw/arm/virt: Pass the bus on the ged creation The bus will be needed on ged realize for acpi pci hp setup. Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov Message-Id: <20250714080639.2525563-26-eric.auger@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 817adedb31..41b5086b55 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -701,6 +701,7 @@ static inline DeviceState *create_acpi_ged(VirtMachineState *vms) dev = qdev_new(TYPE_ACPI_GED); qdev_prop_set_uint32(dev, "ged-event", event); + object_property_set_link(OBJECT(dev), "bus", OBJECT(vms->bus), &error_abort); sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal); sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, vms->memmap[VIRT_ACPI_GED].base);