From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScEzu-0006px-2P for qemu-devel@nongnu.org; Wed, 06 Jun 2012 08:06:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScEzk-0001Ly-OA for qemu-devel@nongnu.org; Wed, 06 Jun 2012 08:05:57 -0400 Received: from e06smtp18.uk.ibm.com ([195.75.94.114]:34245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScEzk-0001Kl-DV for qemu-devel@nongnu.org; Wed, 06 Jun 2012 08:05:48 -0400 Received: from /spool/local by e06smtp18.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Jun 2012 13:05:43 +0100 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1307.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q56C5e4V2400396 for ; Wed, 6 Jun 2012 13:05:40 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q56C5bkr001887 for ; Wed, 6 Jun 2012 06:05:39 -0600 From: Jens Freimann Date: Wed, 6 Jun 2012 14:05:19 +0200 Message-Id: <1338984323-21914-5-git-send-email-jfrei@de.ibm.com> In-Reply-To: <1338984323-21914-1-git-send-email-jfrei@de.ibm.com> References: <1338984323-21914-1-git-send-email-jfrei@de.ibm.com> Subject: [Qemu-devel] [PATCH 4/8] s390: stop target cpu on sigp initial reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: Cornelia Huck , Christian Borntraeger , Jens Freimann , Heinz Graalfs , qemu-devel From: Christian Borntraeger 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 --- target-s390x/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target-s390x/kvm.c b/target-s390x/kvm.c index 93a8431..73cfd1f 100644 --- a/target-s390x/kvm.c +++ b/target-s390x/kvm.c @@ -318,6 +318,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"); } -- 1.7.10.4