Received: from eggs.gnu.org ([2001:4830:134:3::10]:45351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwUaW-0000N0-TI for qemu-devel@nongnu.org; Mon, 16 Jun 2014 06:56:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwUaK-0007Pz-Mr for qemu-devel@nongnu.org; Mon, 16 Jun 2014 06:56:32 -0400 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:58742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwUaK-0007Pn-EZ for qemu-devel@nongnu.org; Mon, 16 Jun 2014 06:56:20 -0400 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Jun 2014 11:56:19 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 1095A17D8059 for ; Mon, 16 Jun 2014 11:57:40 +0100 (BST) Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s5GAuGJI31654012 for ; Mon, 16 Jun 2014 10:56:16 GMT Received: from d06av11.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s5GAuGoG010102 for ; Mon, 16 Jun 2014 04:56:16 -0600 Date: Mon, 16 Jun 2014 12:56:14 +0200 From: Cornelia Huck Message-ID: <20140616125614.719246fa.cornelia.huck@de.ibm.com> In-Reply-To: <1402909065-31208-1-git-send-email-aik@ozlabs.ru> References: <1402630619-4408-1-git-send-email-aik@ozlabs.ru> <1402909065-31208-1-git-send-email-aik@ozlabs.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: Christian Borntraeger , Paolo Bonzini , qemu-devel@nongnu.org, Alexander Graf On Mon, 16 Jun 2014 18:57:45 +1000 Alexey Kardashevskiy wrote: > This implements an NMI interface for s390 and s390-ccw machines. > > This removes #ifdef s390 branch in qmp_inject_nmi so new s390's > nmi_monitor_handler() callback is going to be used for NMI. > > Since nmi_monitor_handler()-calling code is platform independent, > CPUState::cpu_index is used instead of S390CPU::env.cpu_num. > There should not be any change in behaviour as both @cpu_index and > @cpu_num are global CPU numbers. > > Note that s390_cpu_restart() already takes care of the specified cpu, > so we don't need to schedule via async_run_on_cpu(). > > Since the only error s390_cpu_restart() can return is ENOSYS, convert > it to QERR_UNSUPPORTED. > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: Cornelia Huck > --- > Changes: > v8: > * adjusted commit log > > v7: > * since now s390' are QOM'ed, add interface to them and do not create > new object > > v6: > * supported NMI interface > > v5: > * added ENOSYS -> QERR_UNSUPPORTED, qapi/qmp/qerror.h was added for this > > v4: > * s/\/nmi_monitor_handler/ > > v3: > * now contains both old code removal and new code insertion, easier to > track changes > > Conflicts: > hw/s390x/s390-virtio.c > --- > cpus.c | 14 -------------- > hw/s390x/s390-virtio-ccw.c | 6 ++++++ > hw/s390x/s390-virtio.c | 15 +++++++++++++++ > hw/s390x/s390-virtio.h | 3 +++ > 4 files changed, 24 insertions(+), 14 deletions(-) >