From nobody Tue Feb 10 07:21:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539911331295866.8832627145183; Thu, 18 Oct 2018 18:08:51 -0700 (PDT) Received: from localhost ([::1]:45889 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDJHW-0006ND-38 for importer@patchew.org; Thu, 18 Oct 2018 21:08:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDJFO-0004U6-TC for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDJFL-0002kp-S3 for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:38 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:56815) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gDJFL-0002aQ-Dp for qemu-devel@nongnu.org; Thu, 18 Oct 2018 21:06:35 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C5BF622948; Thu, 18 Oct 2018 21:06:27 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 Oct 2018 21:06:27 -0400 Received: from localhost (flamenco.cs.columbia.edu [128.59.20.216]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A087102E2; Thu, 18 Oct 2018 21:06:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=braap.org; h= from:to:cc:subject:date:message-id:in-reply-to:references; s= mesmtp; bh=yXZMv9WGQ+NVShLWfVcjpPXPvTHxUviNzjbYpfTT9wQ=; b=ZIOMO GNqSqrnpB6uG8EADEOt2Vr1Ntqh1RFUKvuCbW/ZpMT7DHZf3iCbNK2j59B82mMmn BkLUPsxpaxW/mQPcF5S8daGg981MU5594FwNQsWBS4CxCeGDTihWV5VSgE8Ak7oj oOPUuEDR6rGpgzsXpyALiVUVMlMhbFk7Y878R8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=yXZMv9WGQ+NVShLWfVcjpPXPvTHxU viNzjbYpfTT9wQ=; b=CsPmqDhtXLQqNwp/EuIcRliBRVeHT5vdM0ANYalN19QQf k9i+vm2J6eU03KkGKLqK9uj9x7/wf5/uVOaQ/9zTxACTQnuHt/GcTTgPwQI4D04k 3umoxmcKJanGhNaDEnMWOr6TGskJib3+lm0/SUZTuPdTQr7Ozbf3dzN5DBPipByR rGPCwfk0jNa0KgQwIku/s/x1mr116HrJ/eoopsuEzzXUyGI6w9z+WWx1p+VuQMLt MLnFJnnvEX6Htg1XtjH2q8KKJfj2j3RVcyYNs6P94seASR97Q17z8lXhweHlIqxS RYByNKbI8BIi70eZMp7/NFQ6eZEZQ/XQYdQM3Wh5g== X-ME-Sender: X-ME-Proxy: From: "Emilio G. Cota" To: qemu-devel@nongnu.org Date: Thu, 18 Oct 2018 21:05:34 -0400 Message-Id: <20181019010625.25294-6-cota@braap.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181019010625.25294-1-cota@braap.org> References: <20181019010625.25294-1-cota@braap.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.29 Subject: [Qemu-devel] [RFC v3 05/56] cpu: move run_on_cpu to cpus-common 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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We don't pass a pointer to qemu_global_mutex anymore. Cc: Peter Crosthwaite Cc: Richard Henderson Signed-off-by: Emilio G. Cota Reviewed-by: Richard Henderson --- include/qom/cpu.h | 10 ---------- cpus-common.c | 2 +- cpus.c | 5 ----- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 82937881ef..90fd685899 100644 --- a/include/qom/cpu.h +++ b/include/qom/cpu.h @@ -759,16 +759,6 @@ void qemu_cpu_kick(CPUState *cpu); */ bool cpu_is_stopped(CPUState *cpu); =20 -/** - * do_run_on_cpu: - * @cpu: The vCPU to run on. - * @func: The function to be executed. - * @data: Data to pass to the function. - * - * Used internally in the implementation of run_on_cpu. - */ -void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data da= ta); - /** * run_on_cpu: * @cpu: The vCPU to run on. diff --git a/cpus-common.c b/cpus-common.c index 2881707c35..20096ec3c6 100644 --- a/cpus-common.c +++ b/cpus-common.c @@ -127,7 +127,7 @@ static void queue_work_on_cpu(CPUState *cpu, struct qem= u_work_item *wi) cpu_mutex_unlock(cpu); } =20 -void do_run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data da= ta) +void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) { struct qemu_work_item wi; =20 diff --git a/cpus.c b/cpus.c index e844335386..a101e8863c 100644 --- a/cpus.c +++ b/cpus.c @@ -1234,11 +1234,6 @@ void qemu_init_cpu_loop(void) qemu_thread_get_self(&io_thread); } =20 -void run_on_cpu(CPUState *cpu, run_on_cpu_func func, run_on_cpu_data data) -{ - do_run_on_cpu(cpu, func, data); -} - static void qemu_kvm_destroy_vcpu(CPUState *cpu) { if (kvm_destroy_vcpu(cpu) < 0) { --=20 2.17.1