[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface
From: |
Cornelia Huck |
Subject: |
Re: [Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface |
Date: |
Mon, 16 Jun 2014 12:56:14 +0200 |
On Mon, 16 Jun 2014 18:57:45 +1000
Alexey Kardashevskiy <address@hidden> 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 <address@hidden>
Reviewed-by: Cornelia Huck <address@hidden>
> ---
> 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\>/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(-)
>
- Re: [Qemu-devel] [PATCH v7 2/4] s390x: Convert QEMUMachine to MachineClass, (continued)
Re: [Qemu-devel] [PATCH v7 0/4] cpus: Add generic "nmi" monitor command support, Alexander Graf, 2014/06/13
[Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface, Alexey Kardashevskiy, 2014/06/16
- Re: [Qemu-devel] [PATCH v8] s390x: Migrate to new NMI interface,
Cornelia Huck <=