Received: from eggs.gnu.org ([2001:4830:134:3::10]:45076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuWOe-0007aL-DL for qemu-devel@nongnu.org; Tue, 10 Jun 2014 20:28:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuWOZ-0007NE-0E for qemu-devel@nongnu.org; Tue, 10 Jun 2014 20:28:08 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) From: Alexander Graf In-Reply-To: Date: Wed, 11 Jun 2014 02:28:01 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <1A9DA1AC-C696-452F-8D7E-68C49E339785@suse.de> References: <1401869330-32449-1-git-send-email-aik@ozlabs.ru> <1401869330-32449-2-git-send-email-aik@ozlabs.ru> <20140610093951.6dd64ea4@redhat.com> <20140610164107.249d8290.cornelia.huck@de.ibm.com> <20140610104847.1cb5a424@redhat.com> <53973277.4090500@redhat.com> <539749EB.2050608@suse.de> Subject: Re: [Qemu-devel] [PATCH v3 1/4] cpus: Define NMI callback List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Alex Bligh , Alexey Kardashevskiy , QEMU Developers , Markus Armbruster , "qemu-ppc@nongnu.org" , Stefan Hajnoczi , Cornelia Huck , Paolo Bonzini , Luiz Capitulino , =?utf-8?Q?Andreas_F=C3=A4rber?= , Richard Henderson > Am 11.06.2014 um 02:23 schrieb Peter Maydell : >=20 >> On 10 June 2014 19:09, Alexander Graf wrote: >> I agree. I see two different paths forward: >>=20 >> 1) Use the patches as they are - they seem pretty sound and take the >> existing x86/s390 only feature to spapr >> 2) Model an "NMI" button. That button would get instantiated by the >> machine model. That would allow the wiring to be defined by the board. >> Monitor / QMP would only "press" that button (trigger an edge interrupt? >> call a function? something). >>=20 >>=20 >> I don't mind much either way - option 2 is the architecturally correct wa= y >> of doing this. Option 1 probably won't hurt us either. >=20 > In an ideal world I'd like (2), ie actually model front panel switches > per machine and with whatever the machine's behaviour actually > is. However pragmatically speaking that's an awful lot of work > (especially since it basically requires adding a lot of U/I which is > always controversial and hard to drive through). I think pragmatism > should probably win here. Could we just stick a new nmi function callback into the machine class with t= he nmi command calling it? That gets us on the right track to the right direction without putting too m= uch work on Alexey's shoulders. Converting from there to an actual button ob= ject should become reasonably straight forward later. Alex