From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMyMG-0004uQ-K9 for qemu-devel@nongnu.org; Thu, 28 Aug 2014 07:59:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMyM5-0002g6-Jq for qemu-devel@nongnu.org; Thu, 28 Aug 2014 07:59:16 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:53522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMyM5-0002fg-B2 for qemu-devel@nongnu.org; Thu, 28 Aug 2014 07:59:05 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 28 Aug 2014 12:59:03 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 57E161B08023 for ; Thu, 28 Aug 2014 13:00:00 +0100 (BST) Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s7SBx1oB36700182 for ; Thu, 28 Aug 2014 11:59:01 GMT Received: from d06av05.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s7SBx1wu017656 for ; Thu, 28 Aug 2014 05:59:01 -0600 From: Jens Freimann Date: Thu, 28 Aug 2014 13:58:51 +0200 Message-Id: <1409227132-55354-5-git-send-email-jfrei@linux.vnet.ibm.com> In-Reply-To: <1409227132-55354-1-git-send-email-jfrei@linux.vnet.ibm.com> References: <1409227132-55354-1-git-send-email-jfrei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 4/5] s390x/kvm: execute "system reset" cpu resets on the vcpu thread List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger , Alexander Graf , Cornelia Huck Cc: David Hildenbrand , Jens Freimann , qemu-devel@nongnu.org From: David Hildenbrand Let's execute resets triggered by qemu system resets on the target vcpu thread. This will avoid synchronize_rcu's in the kernel. Reviewed-by: Cornelia Huck Acked-by: Christian Borntraeger Signed-off-by: David Hildenbrand Signed-off-by: Jens Freimann --- target-s390x/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-s390x/cpu.c b/target-s390x/cpu.c index c3082b7..4633282 100644 --- a/target-s390x/cpu.c +++ b/target-s390x/cpu.c @@ -165,7 +165,7 @@ static void s390_cpu_machine_reset_cb(void *opaque) { S390CPU *cpu = opaque; - cpu_reset(CPU(cpu)); + run_on_cpu(CPU(cpu), s390_do_cpu_full_reset, CPU(cpu)); } #endif -- 1.9.3