qemu-patch-raspberry4/hw/s390x
David Hildenbrand eb24f7c689 s390x/kvm: proper use of the cpu states OPERATING and STOPPED
This patch makes sure that halting a cpu and stopping a cpu are two different
things. Stopping a cpu will also set the cpu halted - this is needed for common
infrastructure to work (note that the stop and stopped flag cannot be used for
our purpose because they are already used by other mechanisms).

A cpu can be halted ("waiting") when it is operating. If interrupts are
disabled, this is called a "disabled wait", as it can't be woken up anymore. A
stopped cpu is treated like a "disabled wait" cpu, but in order to prepare for a
proper cpu state synchronization with the kvm part, we need to track the real
logical state of a cpu.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
CC: Andreas Faerber <afaerber@suse.de>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2014-10-10 10:37:47 +02:00
..
css.c s390x/css: catch ccw sequence errors 2014-09-23 14:10:17 +02:00
css.h s390x/css: catch ccw sequence errors 2014-09-23 14:10:17 +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 s390x/kvm: proper use of the cpu states OPERATING and STOPPED 2014-10-10 10:37:47 +02:00
Makefile.objs s390-sclp: SCLP Event integration 2014-01-21 16:48:39 +01:00
s390-virtio-bus.c virtio: add a wrapper for virtio-backend initialization 2014-09-30 11:09:59 +02: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 memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +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/kvm: introduce proper states for s390 cpus 2014-10-10 10:37:47 +02:00
s390-virtio.h s390x: Migrate to new NMI interface 2014-08-25 13:25:16 +02:00
sclp.c memory: add parameter errp to memory_region_init_ram 2014-09-09 13:41:43 +02: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-scsi: Add 'iothread' property to virtio-scsi 2014-09-30 11:11:20 +02:00
virtio-ccw.h virtio-blk: use aliases instead of duplicate qdev properties 2014-07-01 09:15:02 +02:00