s390x: fix smp support for kvm
commit71b12d31971751f46c546d693c1e216f38ba2053
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 5 May 2011 07:29:57 +0000 (5 09:29 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 20 May 2011 15:35:12 +0000 (20 17:35 +0200)
treeb619840675cca22b4a44494c6c970faa262e8ec8
parent1fddfba129f5435c80eda14e8bc23fdb888c7187
s390x: fix smp support for kvm

Currently smp support for kvm does not work. Qemu does a kvm run even on
secondary CPUs which dont have a sane state (initial psw == 0)
triggering some program faults. Architecturally these cpus are in the stopped
state, so we should not do the kvm run ioctl. (these CPUs will be started
by a SIGP restart later during the boot process)

We need to tell the loop that this cpu should not run. Jan Kiszka pointed
out that kvm_arch_process_async_events is the right place to do.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/kvm.c