qemu-patch-raspberry4/hw/s390x
Alexey Kardashevskiy 3dd7852f19 s390x: Migrate to new NMI interface
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 <aik@ozlabs.ru>
Reviewed-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2014-08-25 13:25:16 +02:00
..
css.c s390x/css: reflect cpa in scsw 2014-07-08 15:08:03 +02:00
css.h s390/virtio-ccw: migration support 2014-06-10 09:50:27 +02:00
event-facility.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
ipl.c s390/ipl: Fix error path on BIOS loading 2014-03-17 22:01:19 +01:00
Makefile.objs s390-sclp: SCLP Event integration 2014-01-21 16:48:39 +01:00
s390-virtio-bus.c virtio: move common virtio properties to bus class device 2014-07-06 09:13:54 +03:00
s390-virtio-bus.h virtio-blk: use aliases instead of duplicate qdev properties 2014-07-01 09:15:02 +02:00
s390-virtio-ccw.c s390x: Migrate to new NMI interface 2014-08-25 13:25:16 +02:00
s390-virtio-hcall.c s390x/virtio-hcall: Specification exception for illegal subcodes 2014-02-27 09:51:25 +01:00
s390-virtio.c s390x: Migrate to new NMI interface 2014-08-25 13:25:16 +02:00
s390-virtio.h s390x: Migrate to new NMI interface 2014-08-25 13:25:16 +02:00
sclp.c s390x/event-facility: code restructure 2014-02-27 09:51:25 +01:00
sclpcpu.c s390x/cpu hotplug: Fix memory leak 2014-03-17 22:01:19 +01:00
sclpquiesce.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
virtio-ccw.c virtio: move common virtio properties to bus class device 2014-07-06 09:13:54 +03:00
virtio-ccw.h virtio-blk: use aliases instead of duplicate qdev properties 2014-07-01 09:15:02 +02:00