qemu-e2k/hw/s390x
David Hildenbrand 75973bfe41 s390x/kvm: introduce proper states for s390 cpus
Until now, when a s390 cpu was stopped or halted, the number of running
CPUs was tracked in a global variable. This was problematic for migration,
so Jason came up with a per-cpu running state.
As it turns out, we want to track the full logical state of a target vcpu,
so we need real s390 cpu states.

This patch is based on an initial patch by Jason Herne, but was heavily
rewritten when adding the cpu states STOPPED and OPERATING. On the way we
move add_del_running to cpu.c (the declaration is already in cpu.h) and
modify the users where appropriate.

Please note that the cpu is still set to be stopped when it is
halted, which is wrong. This will be fixed in the next patch. The LOAD and
CHECK-STOP state will not be used in the first step.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
[folded Jason's patch into David's patch to avoid add/remove same lines]
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 s390/ipl: Fix error path on BIOS loading 2014-03-17 22:01:19 +01:00
Makefile.objs
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