From nobody Tue Feb 10 02:45:05 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1553512379798966.7509232992188; Mon, 25 Mar 2019 04:12:59 -0700 (PDT) Received: from localhost ([127.0.0.1]:40638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8NXE-0005Gw-KY for importer@patchew.org; Mon, 25 Mar 2019 07:12:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8NNa-0005Q9-62 for qemu-devel@nongnu.org; Mon, 25 Mar 2019 07:02:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8NNY-000831-21 for qemu-devel@nongnu.org; Mon, 25 Mar 2019 07:02:58 -0400 Received: from greensocs.com ([193.104.36.180]:38361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8NNT-0007oy-5o; Mon, 25 Mar 2019 07:02:52 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 38B3D7D78A5; Mon, 25 Mar 2019 12:02:30 +0100 (CET) Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QBsgpXXUB8Jl; Mon, 25 Mar 2019 12:02:29 +0100 (CET) Received: by greensocs.com (Postfix, from userid 998) id C86997D78BA; Mon, 25 Mar 2019 12:02:28 +0100 (CET) Received: from kouign-amann.bar.greensocs.com (antfield.tima.u-ga.fr [147.171.129.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: damien.hedde@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id E1C857D78A2; Mon, 25 Mar 2019 12:02:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1553511750; bh=TViZaoixjVUmZtj2y6Y12CBUXZYUENGeEM/hotObZrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iGxnBKmG/Bk6Hxvd28mqC23q3DXaeQ6MwZ50YGn61ABAraBEkTrq3QFEhtI3LM30O zzdmECfMKWLR7cebbcdGQA5I2SCxPByoUe1Dc7HJuvluKXug/bNstO068wcEeyV5YW hVk4pT5WqSmlAWe3qUlPGgMWo8+Gf9fJaO6o1vac= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com header.b=o3jWwBEl; dkim=pass (1024-bit key) header.d=greensocs.com header.b=o3jWwBEl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1553511748; bh=TViZaoixjVUmZtj2y6Y12CBUXZYUENGeEM/hotObZrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=o3jWwBEl+Fy3LB5y5UuZ3Ou2jZwYB7AtpbFFRuswwTm0X3LamZiKAOmH/9szQCp5x kljrFj5zUeVj8vXFiFkp3wiEfmBVGgroXh0Bpz8vJKjarOlzQpxs2SFSDLPPOp7oCx ueSr3nofnM8oWUPiSqNmxRTbNwWH9fMDsLRpIJOo= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1553511748; bh=TViZaoixjVUmZtj2y6Y12CBUXZYUENGeEM/hotObZrU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=o3jWwBEl+Fy3LB5y5UuZ3Ou2jZwYB7AtpbFFRuswwTm0X3LamZiKAOmH/9szQCp5x kljrFj5zUeVj8vXFiFkp3wiEfmBVGgroXh0Bpz8vJKjarOlzQpxs2SFSDLPPOp7oCx ueSr3nofnM8oWUPiSqNmxRTbNwWH9fMDsLRpIJOo= From: Damien Hedde To: qemu-devel@nongnu.org Date: Mon, 25 Mar 2019 12:01:54 +0100 Message-Id: X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [RFC PATCH 11/17] Put orphan buses in system reset domain X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: edgar.iglesias@xilinx.com, peter.maydell@linaro.org, mark.burton@greensocs.com, Damien Hedde , qemu-arm@nongnu.org, alistair.francis@wdc.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, philmd@redhat.com, luc.michel@greensocs.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (found 2 invalid signatures) Content-Type: text/plain; charset="utf-8" Switch from the legacy reset handlers to the system reset domain in order to use the Resettable interface. Signed-off-by: Damien Hedde --- hw/core/bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/core/bus.c b/hw/core/bus.c index 0a60bb4b24..73b215d2bb 100644 --- a/hw/core/bus.c +++ b/hw/core/bus.c @@ -150,7 +150,7 @@ static void qbus_realize(BusState *bus, DeviceState *pa= rent, const char *name) } else if (bus !=3D sysbus_get_default()) { /* TODO: once all bus devices are qdevified, only reset handler for main_system_bus should be registered her= e. */ - qemu_register_reset(qbus_reset_all_fn, bus); + qemu_register_system_reset_domain_object(OBJECT(bus)); } } =20 @@ -169,7 +169,7 @@ static void bus_unparent(Object *obj) bus->parent =3D NULL; } else { assert(bus !=3D sysbus_get_default()); /* main_system_bus is never= freed */ - qemu_unregister_reset(qbus_reset_all_fn, bus); + qemu_unregister_system_reset_domain_object(OBJECT(bus)); } } =20 --=20 2.21.0