Skip to content

Commit

Permalink
s390x: fix smp support for kvm
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
  • Loading branch information
borntraeger authored and agraf committed May 20, 2011
1 parent 1fddfba commit 71b12d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-s390x/kvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void kvm_arch_post_run(CPUState *env, struct kvm_run *run)

int kvm_arch_process_async_events(CPUState *env)
{
return 0;
return env->halted;
}

void kvm_s390_interrupt_internal(CPUState *env, int type, uint32_t parm,
Expand Down

0 comments on commit 71b12d3

Please sign in to comment.