Received: from eggs.gnu.org ([2001:4830:134:3::10]:58856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOR7u-0001cx-FG for qemu-devel@nongnu.org; Mon, 01 Sep 2014 08:54:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOR7f-000553-NK for qemu-devel@nongnu.org; Mon, 01 Sep 2014 08:54:30 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:40953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOR7f-00054m-DM for qemu-devel@nongnu.org; Mon, 01 Sep 2014 08:54:15 -0400 Received: from /spool/local by e06smtp16.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Sep 2014 13:54:13 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 6EC102190046 for ; Mon, 1 Sep 2014 13:53:52 +0100 (BST) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s81CsB3U23396480 for ; Mon, 1 Sep 2014 12:54:11 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s81Cs93f024158 for ; Mon, 1 Sep 2014 06:54:10 -0600 From: Christian Borntraeger Date: Mon, 1 Sep 2014 14:54:15 +0200 Message-Id: <1409576070-55803-5-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1409576070-55803-1-git-send-email-borntraeger@de.ibm.com> References: <1409576070-55803-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULL 04/19] s390x/kvm: execute the first cpu reset on the vcpu thread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Christian Borntraeger , qemu-devel , Alexander Graf , David Hildenbrand , Jens Freimann , Anthony Liguori , Cornelia Huck , Richard Henderson From: David Hildenbrand As all full cpu resets currently call into the kernel to do initial cpu reset, let's run this reset (triggered by cpu_s390x_init()) on the proper vcpu thread. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann Signed-off-by: Christian Borntraeger --- target-s390x/cpu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c index 4633282..505a2fa 100644 --- a/target-s390x/cpu.c +++ b/target-s390x/cpu.c @@ -175,7 +175,11 @@ static void s390_cpu_realizefn(DeviceState *dev, Error **errp) S390CPUClass *scc = S390_CPU_GET_CLASS(dev); qemu_init_vcpu(cs); +#if !defined(CONFIG_USER_ONLY) + run_on_cpu(cs, s390_do_cpu_full_reset, cs); +#else cpu_reset(cs); +#endif scc->parent_realize(dev, errp); } -- 1.8.4.2