From 2fb70f6f1727e9696c703a47861d1173e2b2836f Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Wed, 6 Jun 2012 02:05:19 +0000 Subject: [PATCH] s390: stop target cpu on sigp initial reset We must not run the target cpu after an initial reset. This makes system_reset more reliable for smp guests. Signed-off-by: Christian Borntraeger Signed-off-by: Alexander Graf --- target-s390x/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 5800fd612c..ec08dd0474 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -314,6 +314,7 @@ static int s390_cpu_initial_reset(CPUS390XState *env) { int i; + s390_del_running_cpu(env); if (kvm_vcpu_ioctl(env, KVM_S390_INITIAL_RESET, NULL) < 0) { perror("cannot init reset vcpu"); }