Received: by 2002:a05:693c:2909:b0:17e:9665:bf4c with SMTP id rk9csp505327dyc; Thu, 3 Jul 2025 05:38:14 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUnlt1a5jZyOWp3L5gHXL5CywVbnKkQ7lWRmnz7y7M0qOlscjl80/AQTBZQnWrwtYQCVDMfD9NnWnhuyQ==@linaro.org X-Google-Smtp-Source: AGHT+IGvtb5yzLbMlfMDp4y9xuqTWmUQgOtp/oZoxaleVRysiJoVR3Wi55b18QFNpOB/pSIaozL1 X-Received: by 2002:a05:620a:6292:b0:7cd:5ac0:4f19 with SMTP id af79cd13be357-7d5d13f1427mr474879685a.13.1751546293769; Thu, 03 Jul 2025 05:38:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1751546293; cv=none; d=google.com; s=arc-20240605; b=VhwZ1M/rWRau07yZfuJKNspb7DzlOUvFsl9n5DXXTRNgVup0Jk6f2lSF0WW7qsnszy Vj1ZZNaZDQgTgF/0o70spkaA3eS7rIgYKD4R0pOB/ISXrmovQAEF2iLYPOEk0cfl2X1T QRewXKt6VPGBJlhRXAhThmZzXeH/z63mz+LnmJ3xnFU/ox/3cXDvt83i6/aC4Y3TU/Ht NUWwKW2vopRGBngjJ9ZOB9D1AUUTWiJSyOkJHWvOuFxASrj5vIJYplMs8/h/B+fLyo0S lM+rcg4j7gf8y1dFToZ7cO8/EbBcbVTCaMttrG6dTgsKxPIMwE8nbYTi+du95k5yLuT9 /mqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=BVBauhjAfa1MgdLoAK1AnZIiryc3UEaONwjgDAPygh4=; fh=wjCXBlYiEFaE/nRXdXhm/QzbgpklGNl9u9+2G4gHJbk=; b=JsIKwmLO0icj6kvsgV0fbpQjp5DS/zPVdV20gOOlerVTGsWGYmCwb9fqMOinFuAQJy AOBXg8L9kCd3S3qdKPTXfM6EzjY6JvbcDXJUnT7bCVNRBdQSFUOYW8OadA/wPzXpsqeZ r9rM3P0r01SsoyT68VllyOjPRCOAhpz06Uxyim+OYUiy6Zetty6gVw0pIxSY3x2iNllD ffhd4GXYOjbM7KKHf9soFwSU/MLAULJwVA14nFP7AlapMYH9msT8DSLu7Q0UJe6+dNaV HqJxLiffLFsgd/8A7szWbl2I36BsgaVHKbMOw2PrA1gz3DQ3jp+FAdFmKlfYv1/zRLdY rN4A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IoKA2E52; spf=pass (google.com: domain of eric.auger@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=eric.auger@redhat.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redhat.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com. [170.10.129.124]) by mx.google.com with ESMTPS id d75a77b69052e-4a7fc576331si144947531cf.596.2025.07.03.05.38.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Jul 2025 05:38:13 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.auger@redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IoKA2E52; spf=pass (google.com: domain of eric.auger@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=eric.auger@redhat.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1751546293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BVBauhjAfa1MgdLoAK1AnZIiryc3UEaONwjgDAPygh4=; b=IoKA2E524a/jJISffxV1dN5K2+i1jGdT0mSqgD4LgUVQ3NEQErvT9thZFAMNvZeT0bJF7y WCC4u3KJNSS0PdvfzIP2UhTeyMvv7c4wv2zt4IxeyT6DopcbX7Ry2QFr32YbWlCRaYFSJ2 8C+WUbU9BjANuUpGilkx0vi9U9xywLQ= Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-599-Xa3hcKhIM0yNroyOkmdtYA-1; Thu, 03 Jul 2025 08:38:10 -0400 X-MC-Unique: Xa3hcKhIM0yNroyOkmdtYA-1 X-Mimecast-MFC-AGG-ID: Xa3hcKhIM0yNroyOkmdtYA_1751546288 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CC7B11956086; Thu, 3 Jul 2025 12:38:08 +0000 (UTC) Received: from laptop.redhat.com (unknown [10.44.32.16]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D8C4C18046C7; Thu, 3 Jul 2025 12:38:03 +0000 (UTC) From: Eric Auger To: eric.auger.pro@gmail.com, eric.auger@redhat.com, qemu-devel@nongnu.org, qemu-arm@nongnu.org, peter.maydell@linaro.org, imammedo@redhat.com, Jonathan.Cameron@huawei.com, gustavo.romero@linaro.org, anisinha@redhat.com, mst@redhat.com, shannon.zhaosl@gmail.com Cc: pbonzini@redhat.com, philmd@linaro.org, alex.bennee@linaro.org Subject: [PATCH v5 06/36] hw/acpi/ged: Add a acpi-pci-hotplug-with-bridge-support property Date: Thu, 3 Jul 2025 14:35:06 +0200 Message-ID: <20250703123728.414386-7-eric.auger@redhat.com> In-Reply-To: <20250703123728.414386-1-eric.auger@redhat.com> References: <20250703123728.414386-1-eric.auger@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-TUID: PzmgcSY6tN9p A new boolean property is introduced. This will be used to turn ACPI PCI hotplug support. By default it is unset. Signed-off-by: Eric Auger Reviewed-by: Jonathan Cameron Reviewed-by: Igor Mammedov --- include/hw/acpi/generic_event_device.h | 2 ++ hw/acpi/generic_event_device.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/hw/acpi/generic_event_device.h b/include/hw/acpi/generic_event_device.h index d2dac87b4a..f5ffa67a39 100644 --- a/include/hw/acpi/generic_event_device.h +++ b/include/hw/acpi/generic_event_device.h @@ -63,6 +63,7 @@ #include "hw/acpi/memory_hotplug.h" #include "hw/acpi/ghes.h" #include "hw/acpi/cpu.h" +#include "hw/acpi/pcihp.h" #include "qom/object.h" #define ACPI_POWER_BUTTON_DEVICE "PWRB" @@ -114,6 +115,7 @@ struct AcpiGedState { MemoryRegion container_memhp; CPUHotplugState cpuhp_state; MemoryRegion container_cpuhp; + AcpiPciHpState pcihp_state; GEDState ged_state; uint32_t ged_event_bitmap; qemu_irq irq; diff --git a/hw/acpi/generic_event_device.c b/hw/acpi/generic_event_device.c index 7a62f8d5bc..7831db412b 100644 --- a/hw/acpi/generic_event_device.c +++ b/hw/acpi/generic_event_device.c @@ -318,6 +318,8 @@ static void acpi_ged_send_event(AcpiDeviceIf *adev, AcpiEventStatusBits ev) static const Property acpi_ged_properties[] = { DEFINE_PROP_UINT32("ged-event", AcpiGedState, ged_event_bitmap, 0), + DEFINE_PROP_BOOL(ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, AcpiGedState, + pcihp_state.use_acpi_hotplug_bridge, 0), }; static const VMStateDescription vmstate_memhp_state = { -- 2.49.0