From patchwork Fri Feb 9 19:52:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 871558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zdQjp5Kpxz9s7f for ; Sat, 10 Feb 2018 06:53:50 +1100 (AEDT) Received: from localhost ([::1]:34566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekEk0-0001ON-PE for incoming@patchwork.ozlabs.org; Fri, 09 Feb 2018 14:53:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56708) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ekEjC-0001La-1g for qemu-devel@nongnu.org; Fri, 09 Feb 2018 14:52:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ekEjA-00031Q-Rs for qemu-devel@nongnu.org; Fri, 09 Feb 2018 14:52:58 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57248 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ekEjA-00031I-N3 for qemu-devel@nongnu.org; Fri, 09 Feb 2018 14:52:56 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 36F9B40FB633; Fri, 9 Feb 2018 19:52:46 +0000 (UTC) Received: from t460s.redhat.com (ovpn-116-73.ams2.redhat.com [10.36.116.73]) by smtp.corp.redhat.com (Postfix) with ESMTP id EFE37100F9F8; Fri, 9 Feb 2018 19:52:40 +0000 (UTC) From: David Hildenbrand To: qemu-devel@nongnu.org Date: Fri, 9 Feb 2018 20:52:36 +0100 Message-Id: <20180209195239.16048-1-david@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 09 Feb 2018 19:52:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Fri, 09 Feb 2018 19:52:46 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.187.233.73 Subject: [Qemu-devel] [PATCH v1 0/3] cpus: single-threaded TCG CPU creation improvements X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Richard Henderson , Peter Crosthwaite Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" While looking into CPU hotplug for s390x TCG, I noticed that single-threaded TCG does not properly inititalize CPUs > 1. Fix this and cleanup the code a bit. David Hildenbrand (3): cpus: properly inititalize CPU > 1 under single-threaded TCG cpus: wait for CPU creation at central place cpus: CPU threads are always created initially for one CPU only cpus.c | 33 ++++++++++----------------------- 1 file changed, 10 insertions(+), 23 deletions(-) Reviewed-by: Richard Henderson