From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:55183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0kqj-000519-Np for qemu-devel@nongnu.org; Mon, 04 Mar 2019 05:29:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h0kqi-0003ga-VC for qemu-devel@nongnu.org; Mon, 04 Mar 2019 05:29:33 -0500 Received: from mail-eopbgr810053.outbound.protection.outlook.com ([40.107.81.53]:45711 helo=NAM01-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h0kqi-0003Z0-GB for qemu-devel@nongnu.org; Mon, 04 Mar 2019 05:29:32 -0500 Date: Mon, 4 Mar 2019 11:29:12 +0100 From: "Edgar E. Iglesias" Message-ID: <20190304102912.GC6010@toto> References: <63b980a2-6b28-d5e2-891c-6245ddb1e851@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [RFC] multi phase reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Damien Hedde , Mark Burton , QEMU Developers Hi Damien and others, A few questions from my side. We sometimes see that wires from generic GPIO blocks get connected to reset inputs. This happens both to off-chip perihperals but we also see it on-chip. To avoid having GPIO modules know that some of their outputs are being used as reset signals it would be nice to have a reset proxy that allows any qemu_irq to drive resets for a given device. Perhaps even with built-in options for both interpreting "active-low" and "active-high". I think it would even be useful to have this in qdev but that may be pushing it too far. Any thoughts on that? Have you thought about what happens if someone does an MMIO access to a device while its reset is active? Were you planning to have some "default" SysBus level handling to block MMIO while in reset or anything like that? Or would that be handled individually by each device model? Another question is regarding reset of CPUs. It would be nice to be able to expose similar interfaces and have some defined behaviour for CPUs that are in reset. E.g, if reset is active the CPU does not execute etc. Cheers, Edgar