From patchwork Mon Jan 29 23:01:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 767433 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1116994wro; Mon, 29 Jan 2024 15:04:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLf2mg4XscOqBHH4Ta9UDMQ6CExpO79tg+JRtvl/I8MIozmBVL1SIB8/xM92cYtZuqdD3x X-Received: by 2002:ad4:5247:0:b0:68c:42ce:2cdb with SMTP id s7-20020ad45247000000b0068c42ce2cdbmr4628431qvq.99.1706569448076; Mon, 29 Jan 2024 15:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706569448; cv=none; d=google.com; s=arc-20160816; b=AI8U18k2eD43ClmehtJDyZCtHZ2SBfKggtr42ArUPiAjRbjG9UtmshsZ9z1Hk5QtAP DrUKsA1K7hAjsikLRuUXkY6eMjNliJh9OgFtlNHHFjNwDVjSkwBjsQ9JsW5fi60WBJwO hgfFC+BTF8L+nRJWgYJZKfO+h0e9DoahVQ7F2LqtyaVnxinN2xCkWaNsLOZ+0HFHjW+W KIeZYdGYZnAYAXmLblZxOSQVR9vbICTO2mNVYpj8XDtUT918q9BK0pDVTO6OorN6Tpp+ DBLKTtn2eEm2BIVZqLVtGs1f+LSOAxTEnzj0osyNtAhGe/6ZUMk2EVuLzL4wdYnF7rYY JuJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IeBfHlDAifxu4F1/UNQzzGCEUArq4HbYf2mScaRZKZ4=; fh=HGG5jZNhe8Q+zQJ9+mddel2c/xsqW3vEoqbd78QYiOw=; b=i/FvK4INPohP5tROf8A4AfVrbtALz40/hlabBthu/9Erse2OpJAdgPolmz2pmNsq0Q hXic5Y6S7QMtaLQZe+6W3sBByfeK6Mjo67fZMHihdZc2HabfdJvkrN+BbWJsDw1CYzf9 UebOC9Nk1PUkMENZllJsXJJEz9G77woAm5MeUwE8msWXEMzHqEv1sRKZIhr19GQ5758D AMnrvx4CXhxTUrHHnHGvlmDp5X8T11b7z6ftpssrvfNWawNUssyVehfTt5b5hXWkawIg a0Setgjr/Xyam3PWPmGshqGfK5YqgBK/7vxMtZzTiRDhgpYvUlElxzmZvf23wqEt5TdB sVIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R+i/ymPy"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id gy13-20020a056214242d00b0068c51f4271asi2401102qvb.485.2024.01.29.15.04.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Jan 2024 15:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="R+i/ymPy"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUafa-0007if-Fr; Mon, 29 Jan 2024 18:04:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUae1-0006lq-RB for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:02:26 -0500 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUadz-0008V9-Sx for qemu-devel@nongnu.org; Mon, 29 Jan 2024 18:02:25 -0500 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6ddc5faeb7fso2586395b3a.3 for ; Mon, 29 Jan 2024 15:02:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706569342; x=1707174142; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IeBfHlDAifxu4F1/UNQzzGCEUArq4HbYf2mScaRZKZ4=; b=R+i/ymPyT3LhQ9KcRwcs2NEiEGaDmz3bXPpSK3CmDbTXzujNDRf/qhxw6WfhmjKs7d nE0rSdjhBXYQeXbM3c/01lChxCAEWkXPtrVeo8xsYmVZkH5w0jhNM/+UDT93tboWKneF c3fdlnrqxdX3pL94xTb3QrHMrMPZXYC+zn/oB5EwRLyXDWzHUAZjphgUn7+LDMW213io NhBKd6Dj5+zg/LCCcjcKlDpAVZh6E6TFXDTzL9MP1Zl3iTzN0bJvV5VS3LE85IyJzImY jqTrIrSoqVMwofeBP2012wPWPgqBpY8gxpamoBn7CD8JBav7QTheDIr1cLX86SGjMV5X +yOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706569342; x=1707174142; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IeBfHlDAifxu4F1/UNQzzGCEUArq4HbYf2mScaRZKZ4=; b=WEMcUKWfThRfCTCyHy3ZG/fAwQKWOx6fOtuE+726AAOWAph+z4Nj4eGaJjfL0Fr56N wqgcPvO0C+BXf4CuU+X0tkDf+MUENOJE/894sIahREXtAEAGaqc1xzmaD+GRyV+63lXb ITHFdzXSRqIJaNYgZUK10Hj3fyCovyps5iwKxI0vApcQHuxqjMNSPcFEfsuI5P9DBMN6 WOf45V7zdOlm77SZD0nPrNr1wybsp2ig2BBbSP0EgdHDB5Z3mH9+7ZTThVGhhVhKV72a eoiy5bPMfyioi9ftdxUKUvfThBNKxixtzW3yVAiz+R/J/4SogXgAZLqtezFdFsJ46FZ7 /93g== X-Gm-Message-State: AOJu0YzZSRC1BwaNaloukyZH8PLWLF9GC6bie2plLLTz9Vs1sXU/jG26 ztRF8TGdEbg3BehOAw20Unp34wsy64pMER9ZSO/v7OnlA25+aJwJSArJThDq6LhZINmFR9FiZC9 2Pks= X-Received: by 2002:a05:6a00:2d21:b0:6de:2f30:9aa4 with SMTP id fa33-20020a056a002d2100b006de2f309aa4mr2988012pfb.33.1706569342315; Mon, 29 Jan 2024 15:02:22 -0800 (PST) Received: from stoup.. ([103.210.27.218]) by smtp.gmail.com with ESMTPSA id r10-20020aa78b8a000000b006ddcf56fb78sm6419368pfd.62.2024.01.29.15.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:02:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Anton Johansson Subject: [PULL 21/31] accel/tcg: Rename tcg_cpus_destroy() -> tcg_cpu_destroy() Date: Tue, 30 Jan 2024 09:01:11 +1000 Message-Id: <20240129230121.8091-22-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240129230121.8091-1-richard.henderson@linaro.org> References: <20240129230121.8091-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::429; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé tcg_cpus_destroy() operates on a single vCPU, rename it as 'tcg_cpu_destroy'. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Anton Johansson Reviewed-by: Richard Henderson Message-Id: <20240124101639.30056-3-philmd@linaro.org> Signed-off-by: Richard Henderson --- accel/tcg/tcg-accel-ops.h | 2 +- accel/tcg/tcg-accel-ops-mttcg.c | 2 +- accel/tcg/tcg-accel-ops-rr.c | 2 +- accel/tcg/tcg-accel-ops.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accel/tcg/tcg-accel-ops.h b/accel/tcg/tcg-accel-ops.h index f9bc6330e2..17c7ed00eb 100644 --- a/accel/tcg/tcg-accel-ops.h +++ b/accel/tcg/tcg-accel-ops.h @@ -14,7 +14,7 @@ #include "sysemu/cpus.h" -void tcg_cpus_destroy(CPUState *cpu); +void tcg_cpu_destroy(CPUState *cpu); int tcg_cpus_exec(CPUState *cpu); void tcg_handle_interrupt(CPUState *cpu, int mask); void tcg_cpu_init_cflags(CPUState *cpu, bool parallel); diff --git a/accel/tcg/tcg-accel-ops-mttcg.c b/accel/tcg/tcg-accel-ops-mttcg.c index af7307013a..bcba314a65 100644 --- a/accel/tcg/tcg-accel-ops-mttcg.c +++ b/accel/tcg/tcg-accel-ops-mttcg.c @@ -118,7 +118,7 @@ static void *mttcg_cpu_thread_fn(void *arg) qemu_wait_io_event(cpu); } while (!cpu->unplug || cpu_can_run(cpu)); - tcg_cpus_destroy(cpu); + tcg_cpu_destroy(cpu); bql_unlock(); rcu_remove_force_rcu_notifier(&force_rcu.notifier); rcu_unregister_thread(); diff --git a/accel/tcg/tcg-accel-ops-rr.c b/accel/tcg/tcg-accel-ops-rr.c index 3208035d85..0617f66b5b 100644 --- a/accel/tcg/tcg-accel-ops-rr.c +++ b/accel/tcg/tcg-accel-ops-rr.c @@ -131,7 +131,7 @@ static void rr_deal_with_unplugged_cpus(void) CPU_FOREACH(cpu) { if (cpu->unplug && !cpu_can_run(cpu)) { - tcg_cpus_destroy(cpu); + tcg_cpu_destroy(cpu); break; } } diff --git a/accel/tcg/tcg-accel-ops.c b/accel/tcg/tcg-accel-ops.c index 813065c0ec..9b84b84218 100644 --- a/accel/tcg/tcg-accel-ops.c +++ b/accel/tcg/tcg-accel-ops.c @@ -63,7 +63,7 @@ void tcg_cpu_init_cflags(CPUState *cpu, bool parallel) cpu->tcg_cflags |= cflags; } -void tcg_cpus_destroy(CPUState *cpu) +void tcg_cpu_destroy(CPUState *cpu) { cpu_thread_signal_destroyed(cpu); }