From nobody Wed Nov 27 06:35:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1700069736; cv=none; d=zohomail.com; s=zohoarc; b=mzlnq6n+x6RUtG0ZF4yz8QEq0URTxN8X/IYM7WRv3FmARq8KZZZWs5KP82ToOtvexA1dgtBquTmaPxQpEK03X8Zgsda9fjwTh518m/7CNYmF8yY1uJ1HDNS2dCqz+3Bktt9tdUivMd1GEtrFCBL+tqvFZyyczmGqpwUXemCFtq8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700069736; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JOWbwFjOMTqxGzgy35q6kjO/41Rh3g/nrtq0Lyyy5/o=; b=gYBNlQJnvAwww9spZuyVO5G+TwoINEPcxhCp51BMNelp53dVlIEdy0aLjry8MII8gsdJtRaUvUjK9fhVkf/Hc9qnp1hPGXpESBdTpMl6HDqoVkU01FLrOvtsg6VE9WlWpHCBlTIUy58x63SJryo0s+NqDYOgEcNmDbExt099oYc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700069736752513.4257269384627; Wed, 15 Nov 2023 09:35:36 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Jmv-0003an-LL; Wed, 15 Nov 2023 12:34:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jmr-0003a6-Uf for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:51 -0500 Received: from mail186-12.suw21.mandrillapp.com ([198.2.186.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jmq-0000pE-AY for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:49 -0500 Received: from pmta10.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail186-12.suw21.mandrillapp.com (Mailchimp) with ESMTP id 4SVqdT3X49z705mFt for ; Wed, 15 Nov 2023 17:18:53 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id b49b99c6e13344f598497a0b57be6331; Wed, 15 Nov 2023 17:18:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mandrill; t=1700068733; x=1700329233; i=thierry.escande@vates.tech; bh=JOWbwFjOMTqxGzgy35q6kjO/41Rh3g/nrtq0Lyyy5/o=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=OkYe3Lr7NSDW/VURqE7OeXgTeIfYsrQhL5HSrwlphIYedmdatPRn/92yz6ruzkaVW DWq1QGNWjij5qOD4LVY/RNsao9+1lwjsI9RM2T7VXEvsNSb2hgRJEc+XAdTTzv05Fa 25lFObxUrTqiPNRRjo6CZuLyqRU3pBUP8Qakid6M= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1700068733; h=from : subject : to : cc : message-id : in-reply-to : references : date : mime-version : content-type : content-transfer-encoding : from : x-mandrill-user : list-unsubscribe; bh=JOWbwFjOMTqxGzgy35q6kjO/41Rh3g/nrtq0Lyyy5/o=; b=R/c2iAmnQrPzl0V7tvUiCiIu6OmVyK1WIHFzhg/hcp0hIkyVfzAEWyPsbW23QRrlsAkSC 5oPs6bbBlc+sXP43/RM+9kur4IfQzdOakmC6LPGw56UNgBPhAc7a+y9C7pVHyuai3ULC42I ZRL1Wgi+Ai4vpbdCXO+XbikZfDWkFYk= From: Thierry Escande Subject: =?utf-8?Q?[PATCH=201/4]=20ich9:=20Remove=20unused=20hotplug=20field=20from=20ICH9LPCPMRegs=20struct?= X-Mailer: git-send-email 2.42.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: a6f8c62a-75f8-4756-90d1-92e0b788484c X-Bm-Transport-Timestamp: 1700068731800 To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , Marcel Apfelbaum , Igor Mammedov Message-Id: <20231115171837.18866-2-thierry.escande@vates.tech> In-Reply-To: <20231115171837.18866-1-thierry.escande@vates.tech> References: <20231115171837.18866-1-thierry.escande@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message, =20including=20all=20headers, =20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.b49b99c6e13344f598497a0b57be6331?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20231115:md Date: Wed, 15 Nov 2023 17:18:53 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.2.186.12; envelope-from=bounce-md_30504962.6554fd7d.v1-b49b99c6e13344f598497a0b57be6331@bounce.vates.tech; helo=mail186-12.suw21.mandrillapp.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity thierry.escande@vates.tech) X-ZM-MESSAGEID: 1700069738596100003 Content-Type: text/plain; charset="utf-8" This patch removes the unused field use_acpi_hotplug_bridge from the ICH9LPCPMRegs structure as it is now part of AcpiPciHpState. Hotplug fields have been removed from piix4 state structure by commit 6536e427ce49 (pcihp: move fields enabling hotplug into AcpiPciHpState) so do the same for ich9. Signed-off-by: Thierry Escande Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by:Igor Mammedov --- include/hw/acpi/ich9.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/hw/acpi/ich9.h b/include/hw/acpi/ich9.h index 2faf7f0cae..4bc9aa1d11 100644 --- a/include/hw/acpi/ich9.h +++ b/include/hw/acpi/ich9.h @@ -57,7 +57,6 @@ typedef struct ICH9LPCPMRegs { CPUHotplugState cpuhp_state; =20 bool keep_pci_slot_hpc; - bool use_acpi_hotplug_bridge; AcpiPciHpState acpi_pci_hotplug; MemHotplugState acpi_memory_hotplug; =20 --=20 2.42.0 Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech From nobody Wed Nov 27 06:35:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1700069759; cv=none; d=zohomail.com; s=zohoarc; b=ZSwlSlt5IcM+QWCyEYFQnmq3MCnIdrE6+CvSrVYTc3YB5qdlloOzGYUlbgyCNSF7artsIMUnd7SKvjmCZ6fKMJ8dhXrTVKIOqc2bEfbdHc/YthIZD+1Hm4Iuy7IUXtPk/qWnYtZ5fpaSrVh72c5rYUnpoNRjOl14PasHG5T3s3c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700069759; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=772UvSNMErfiNXPs1WP9aAygWLVrIlAWrweCRbp74Kg=; b=jMk9Jg0UnsavHOzfnNp83b+J1yhkYbHOsDmShvWz4bhrPLu3OmoGXQKnTYhr6bWCaEsM7irMlYWS24mOJADn4+vxkXGtSgScsR3tj3HakcTgiVhuJ8wO4RHw21kX2D76FzPO6/0HRA6Ia4y2CS6Rab3H2YY4SRDmRaljhDaP1vM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700069759187574.9069100905847; Wed, 15 Nov 2023 09:35:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Jnq-00057M-K7; Wed, 15 Nov 2023 12:35:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jnn-00056R-NK for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:35:47 -0500 Received: from mail132-20.atl131.mandrillapp.com ([198.2.132.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jnl-0001j1-3F for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:35:47 -0500 Received: from pmta09.mandrill.prod.atl01.rsglab.com (localhost [127.0.0.1]) by mail132-20.atl131.mandrillapp.com (Mailchimp) with ESMTP id 4SVqdT0DNNzFCWscr for ; Wed, 15 Nov 2023 17:18:53 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 20b5511b4cb34608958f8e8a5fc5fd67; Wed, 15 Nov 2023 17:18:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mandrill; t=1700068733; x=1700329233; i=thierry.escande@vates.tech; bh=772UvSNMErfiNXPs1WP9aAygWLVrIlAWrweCRbp74Kg=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=hDwEqpFA0qqmP22kbUFjuWrLziCAOczYQCOhiFc5NtAt2CCqEBUhKLSeCjcvQ8aey S13qBYDq1SRo74HkMHdUNTN6UaA92D2I9Y0Buc2lkqo0/qoo+auvLQoklXDClUzXjB MSBk1QH1xd93iAlZUU+0+LjFTjXuNNX3eCLAO+G0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1700068732; h=from : subject : to : cc : message-id : in-reply-to : references : date : mime-version : content-type : content-transfer-encoding : from : x-mandrill-user : list-unsubscribe; bh=772UvSNMErfiNXPs1WP9aAygWLVrIlAWrweCRbp74Kg=; b=Y17s3VkUpGQuywqwbPLMvnCJvbcZWZa2DFfr/Rgi7o4mYLxsR9+peB+xlI9KqMP+CLybe XV4Q9wYHja3Dn8cjYxd7ehZRWftYSxduHKe+9TQhPS4B+Pj1r/ZgvOkkmzNhPQEKt+b4u8r MGbV7REthkw9baHHrkgpfFZHc9bXODU= From: Thierry Escande Subject: =?utf-8?Q?[PATCH=202/4]=20ich9:=20Renamed=20use=5Facpi=5Fhotplug=5Fbridge=20accessors?= X-Mailer: git-send-email 2.42.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: a6f8c62a-75f8-4756-90d1-92e0b788484c X-Bm-Transport-Timestamp: 1700068732078 To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , Marcel Apfelbaum , Igor Mammedov Message-Id: <20231115171837.18866-3-thierry.escande@vates.tech> In-Reply-To: <20231115171837.18866-1-thierry.escande@vates.tech> References: <20231115171837.18866-1-thierry.escande@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message, =20including=20all=20headers, =20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.20b5511b4cb34608958f8e8a5fc5fd67?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20231115:md Date: Wed, 15 Nov 2023 17:18:52 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.2.132.20; envelope-from=bounce-md_30504962.6554fd7c.v1-20b5511b4cb34608958f8e8a5fc5fd67@bounce.vates.tech; helo=mail132-20.atl131.mandrillapp.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity thierry.escande@vates.tech) X-ZM-MESSAGEID: 1700069760676100003 Content-Type: text/plain; charset="utf-8" The accessors were named as ich9_pm_get/set_acpi_pci_hotplug(). This patch renames them as ich9_pm_get/set_acpi_hotplug_bridge(). Signed-off-by: Thierry Escande --- hw/acpi/ich9.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index 25e2c7243e..e21732b547 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -398,14 +398,15 @@ static void ich9_pm_set_enable_tco(Object *obj, bool = value, Error **errp) s->pm.enable_tco =3D value; } =20 -static bool ich9_pm_get_acpi_pci_hotplug(Object *obj, Error **errp) +static bool ich9_pm_get_acpi_hotplug_bridge(Object *obj, Error **errp) { ICH9LPCState *s =3D ICH9_LPC_DEVICE(obj); =20 return s->pm.acpi_pci_hotplug.use_acpi_hotplug_bridge; } =20 -static void ich9_pm_set_acpi_pci_hotplug(Object *obj, bool value, Error **= errp) +static void ich9_pm_set_acpi_hotplug_bridge(Object *obj, bool value, + Error **errp) { ICH9LPCState *s =3D ICH9_LPC_DEVICE(obj); =20 @@ -461,8 +462,8 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs = *pm) ich9_pm_get_enable_tco, ich9_pm_set_enable_tco); object_property_add_bool(obj, ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, - ich9_pm_get_acpi_pci_hotplug, - ich9_pm_set_acpi_pci_hotplug); + ich9_pm_get_acpi_hotplug_bridge, + ich9_pm_set_acpi_hotplug_bridge); object_property_add_bool(obj, "x-keep-pci-slot-hpc", ich9_pm_get_keep_pci_slot_hpc, ich9_pm_set_keep_pci_slot_hpc); --=20 2.42.0 Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech From nobody Wed Nov 27 06:35:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1700069755; cv=none; d=zohomail.com; s=zohoarc; b=PD7QGwCquE/OZb5rte26kW6tZt7SYM0ULPM4gJsnf24b8pgbZy4NCnV9e+nOlYytPCGqpDD3Q92Q4OGDlR0yBWdZ9zoMQHtBmLEROm9+JnFMn5rTt1YBwLO5J005AluhsERDyvb7C0Ttoc8Yq0pDXQzUZK/jPuS7ml1F/X1oefM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700069755; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=0AkevqCVQ5EhqI9vwSOq2BG4pE9solynAvDj4lNtdRY=; b=BfxW4mJGGIGqfYLJtj9/43W4JCYf9dPAHTcV6ELmJyhfe9PRhV/VljScGtdYd4gNNkTmsgID2ShSAEPxZo5Q6yTgjvlCdGiPAq82np9cMN/Y+yvuk4Kb+FrHSj5LO4LxuPWju/vr4YTXILVJYKdt1BMjSh0EMPw1rW2gW2K7JdA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1700069755968221.90739086169458; Wed, 15 Nov 2023 09:35:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Jn3-0003ir-EO; Wed, 15 Nov 2023 12:35:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jmo-0003Zu-CZ for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:47 -0500 Received: from mail186-12.suw21.mandrillapp.com ([198.2.186.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jml-0000ou-Oy for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:46 -0500 Received: from pmta10.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail186-12.suw21.mandrillapp.com (Mailchimp) with ESMTP id 4SVqdT6w4Cz705md5 for ; Wed, 15 Nov 2023 17:18:53 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 7de3bc1eacbb410583386b7e5d6ebd8f; Wed, 15 Nov 2023 17:18:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mandrill; t=1700068734; x=1700329234; i=thierry.escande@vates.tech; bh=0AkevqCVQ5EhqI9vwSOq2BG4pE9solynAvDj4lNtdRY=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=bRxmXpNNCOod5/n96FS9CzBsTEqIbvOcLKFowC43Vo6gzWqG86oEXRlkQh/04t8rv 4t10sm+PqdnJ66L8uwq4t4E9+iy2r9d/uloZwNVy5ftxgi/2/d9qkC+cSZbG1/dNDi f5/BH85UVjeNdT4Ix3wVp29IfuFDU6Zsh/QtHGCk= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1700068733; h=from : subject : to : cc : message-id : in-reply-to : references : date : mime-version : content-type : content-transfer-encoding : from : x-mandrill-user : list-unsubscribe; bh=0AkevqCVQ5EhqI9vwSOq2BG4pE9solynAvDj4lNtdRY=; b=FusL+iEniD8tOgevdtaQiRUVC5p8iL9N4Wv0wr7kRdQWEMV7BurZHU9I9da8eFhcueCbS mYs2KbarOv+rqefqzm9HYniB6ywdZb4h+frt7Zh9VIPxhw1i/phhZMQYawYtNXKuz2Ma8gS BY/Lq6FlWYgm4BswZEbxmYkCCZrooaQ= From: Thierry Escande Subject: =?utf-8?Q?[PATCH=203/4]=20ich9:=20Add=20accessors=20for=20acpi-root-pci-hotplug?= X-Mailer: git-send-email 2.42.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: a6f8c62a-75f8-4756-90d1-92e0b788484c X-Bm-Transport-Timestamp: 1700068732351 To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , Marcel Apfelbaum , Igor Mammedov Message-Id: <20231115171837.18866-4-thierry.escande@vates.tech> In-Reply-To: <20231115171837.18866-1-thierry.escande@vates.tech> References: <20231115171837.18866-1-thierry.escande@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message, =20including=20all=20headers, =20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.7de3bc1eacbb410583386b7e5d6ebd8f?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20231115:md Date: Wed, 15 Nov 2023 17:18:53 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.2.186.12; envelope-from=bounce-md_30504962.6554fd7d.v1-7de3bc1eacbb410583386b7e5d6ebd8f@bounce.vates.tech; helo=mail186-12.suw21.mandrillapp.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity thierry.escande@vates.tech) X-ZM-MESSAGEID: 1700069756645100003 Content-Type: text/plain; charset="utf-8" This patch adds accessors for acpi-root-pci-hotplug property. PCI hotplug can be enabled/disabled with: -global ICH9-LPC.acpi-root-pci-hotplug=3Don|off Signed-off-by: Thierry Escande --- hw/acpi/ich9.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index e21732b547..e38c9bb998 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -413,6 +413,20 @@ static void ich9_pm_set_acpi_hotplug_bridge(Object *ob= j, bool value, s->pm.acpi_pci_hotplug.use_acpi_hotplug_bridge =3D value; } =20 +static bool ich9_pm_get_acpi_pci_hotplug(Object *obj, Error **errp) +{ + ICH9LPCState *s =3D ICH9_LPC_DEVICE(obj); + + return s->pm.acpi_pci_hotplug.use_acpi_root_pci_hotplug; +} + +static void ich9_pm_set_acpi_pci_hotplug(Object *obj, bool value, Error **= errp) +{ + ICH9LPCState *s =3D ICH9_LPC_DEVICE(obj); + + s->pm.acpi_pci_hotplug.use_acpi_root_pci_hotplug =3D value; +} + static bool ich9_pm_get_keep_pci_slot_hpc(Object *obj, Error **errp) { ICH9LPCState *s =3D ICH9_LPC_DEVICE(obj); @@ -464,6 +478,9 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs = *pm) object_property_add_bool(obj, ACPI_PM_PROP_ACPI_PCIHP_BRIDGE, ich9_pm_get_acpi_hotplug_bridge, ich9_pm_set_acpi_hotplug_bridge); + object_property_add_bool(obj, ACPI_PM_PROP_ACPI_PCI_ROOTHP, + ich9_pm_get_acpi_pci_hotplug, + ich9_pm_set_acpi_pci_hotplug); object_property_add_bool(obj, "x-keep-pci-slot-hpc", ich9_pm_get_keep_pci_slot_hpc, ich9_pm_set_keep_pci_slot_hpc); --=20 2.42.0 Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech From nobody Wed Nov 27 06:35:15 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=vates.tech ARC-Seal: i=1; a=rsa-sha256; t=1700069743; cv=none; d=zohomail.com; s=zohoarc; b=jR/y1VAdF0LyR4Px+PHMHaOmhpgXiYkuXLzrQ0XU1FE2vP9oTvQAgnSn3wrObu8mxkxLCRkGLsF1n6EbPvhNYgbozkQIFkgp+31Wc9mSFkEzs2L0TMgI8/7TENYn6Uz0y9nfPQ6zfVq7z9qyVyYskICccTyjH7ibRrSvvRlyAPA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1700069743; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=i1KUIQO9g2CZuRmPbda+2Zt1MIb/whRGYxYd60ywESM=; b=n4oZO2MmvW0O6i1kZpian/3nz0+p3ORYMcUCk4Q76ZStyMPnquID++/zh0RLdVSlOeU0ZhAAJDWgr+Y9hc5eMKv5cnf96XEXTPVigPLzpb4AOOUXnZeI5ZQ7pV5Fr7oPqQehrhUCmmpun7ZI8s7ot6IyUySReTNoQ4uiGuGPCDc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=thierry.escande@vates.tech; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 17000697433461017.4273026734031; Wed, 15 Nov 2023 09:35:43 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Jn1-0003hj-VZ; Wed, 15 Nov 2023 12:34:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jmo-0003Zt-Bh for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:47 -0500 Received: from mail186-12.suw21.mandrillapp.com ([198.2.186.12]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Jml-0000ot-P3 for qemu-devel@nongnu.org; Wed, 15 Nov 2023 12:34:45 -0500 Received: from pmta10.mandrill.prod.suw01.rsglab.com (localhost [127.0.0.1]) by mail186-12.suw21.mandrillapp.com (Mailchimp) with ESMTP id 4SVqdV239Fz705lSg for ; Wed, 15 Nov 2023 17:18:54 +0000 (GMT) Received: from [37.26.189.201] by mandrillapp.com id 62533e98bbfc4db9867c94103d9014ee; Wed, 15 Nov 2023 17:18:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vates.tech; s=mandrill; t=1700068734; x=1700329234; i=thierry.escande@vates.tech; bh=i1KUIQO9g2CZuRmPbda+2Zt1MIb/whRGYxYd60ywESM=; h=From:Subject:To:Cc:Message-Id:In-Reply-To:References:Feedback-ID: Date:MIME-Version:Content-Type:Content-Transfer-Encoding:CC:Date: Subject:From; b=VazxA3WrRgG9hDWv8eZ6XbTouX+X4MpF2UURlDULyXTY1P3L/r6+0qtL/hJ0fGBTi NLDlz+uOzfFZkyuKT9DI+XrulWhejfPpBRxG3/SCNxE1+mwstcEu90FmwAvQR9BPKJ uPhkuyQeSNXP0u2d/+CG4Sp8DuA/BWsJHX1V8tIs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1700068734; h=from : subject : to : cc : message-id : in-reply-to : references : date : mime-version : content-type : content-transfer-encoding : from : x-mandrill-user : list-unsubscribe; bh=i1KUIQO9g2CZuRmPbda+2Zt1MIb/whRGYxYd60ywESM=; b=BzAm5UQ06P50D8CQjB8nixF+Zgw24WgGdUXxf5lIEeDFxR4TtRGuBeQ1XDIVjSbah91jt pl3XfVE8Pwc0KpAJ+v5+Ken10nVoe1BonCmnG6Q7PlkAWHSa1nwCQpih3hxmdR3E6cRvSK4 5zhmvZKTmdiW16nZ863K6tQBREpHVCA= From: Thierry Escande Subject: =?utf-8?Q?[PATCH=204/4]=20ich9:=20Enable=20root=20PCI=20hotplug=20by=20default?= X-Mailer: git-send-email 2.42.0 X-Bm-Disclaimer: Yes X-Bm-Milter-Handled: a6f8c62a-75f8-4756-90d1-92e0b788484c X-Bm-Transport-Timestamp: 1700068732696 To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , Marcel Apfelbaum , Igor Mammedov Message-Id: <20231115171837.18866-5-thierry.escande@vates.tech> In-Reply-To: <20231115171837.18866-1-thierry.escande@vates.tech> References: <20231115171837.18866-1-thierry.escande@vates.tech> X-Native-Encoded: 1 X-Report-Abuse: =?UTF-8?Q?Please=20forward=20a=20copy=20of=20this=20message, =20including=20all=20headers, =20to=20abuse@mandrill.com.=20You=20can=20also=20report=20abuse=20here:=20https://mandrillapp.com/contact/abuse=3Fid=3D30504962.62533e98bbfc4db9867c94103d9014ee?= X-Mandrill-User: md_30504962 Feedback-ID: 30504962:30504962.20231115:md Date: Wed, 15 Nov 2023 17:18:54 +0000 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.2.186.12; envelope-from=bounce-md_30504962.6554fd7e.v1-62533e98bbfc4db9867c94103d9014ee@bounce.vates.tech; helo=mail186-12.suw21.mandrillapp.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity thierry.escande@vates.tech) X-ZM-MESSAGEID: 1700069744612100003 Content-Type: text/plain; charset="utf-8" This patch initializes use_acpi_root_pci_hotplug to true and enables device PCI hotplug on q35 machine by default. Signed-off-by: Thierry Escande --- hw/acpi/ich9.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c index e38c9bb998..ad2c8ad8ed 100644 --- a/hw/acpi/ich9.c +++ b/hw/acpi/ich9.c @@ -450,6 +450,7 @@ void ich9_pm_add_properties(Object *obj, ICH9LPCPMRegs = *pm) pm->disable_s4 =3D 0; pm->s4_val =3D 2; pm->acpi_pci_hotplug.use_acpi_hotplug_bridge =3D true; + pm->acpi_pci_hotplug.use_acpi_root_pci_hotplug =3D true; pm->keep_pci_slot_hpc =3D true; pm->enable_tco =3D true; =20 --=20 2.42.0 Thierry Escande | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech