From patchwork Wed May 4 16:13:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: s390x kvm and smp Date: Wed, 04 May 2011 06:13:18 -0000 From: Christian Borntraeger X-Patchwork-Id: 94085 Message-Id: <4DC17B1E.2080305@de.ibm.com> To: Jan Kiszka , Alexander Graf Cc: Carsten Otte , qemu-devel@nongnu.org On 04/05/11 12:59, Jan Kiszka wrote: > s390 just need to return a meaningful value from > kvm_arch_process_async_events, e.g. env->halted, see other archs. Yes indeed. This patch fixes smp for kvm on s390x. Signed-off-by: Christian Borntraeger --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -172,7 +172,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,