{"id":2198255,"url":"http://patchwork.ozlabs.org/api/1.0/patches/2198255/?format=json","project":{"id":14,"url":"http://patchwork.ozlabs.org/api/1.0/projects/14/?format=json","name":"QEMU Development","link_name":"qemu-devel","list_id":"qemu-devel.nongnu.org","list_email":"qemu-devel@nongnu.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260219171810.602667-11-alex.bennee@linaro.org>","date":"2026-02-19T17:18:06","name":"[RFC,v2,10/14] target/arm: remove extraneous cpu_reset from realizefn","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"f5388916a8a7b7135c84de0b5181523c7768febe","submitter":{"id":39532,"url":"http://patchwork.ozlabs.org/api/1.0/people/39532/?format=json","name":"Alex Bennée","email":"alex.bennee@linaro.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/qemu-devel/patch/20260219171810.602667-11-alex.bennee@linaro.org/mbox/","series":[{"id":492705,"url":"http://patchwork.ozlabs.org/api/1.0/series/492705/?format=json","date":"2026-02-19T17:17:57","name":"cpu_reset clean-ups for arm, alpha, mips, m68k and tricore","version":2,"mbox":"http://patchwork.ozlabs.org/series/492705/mbox/"}],"check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2198255/checks/","tags":{},"headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256\n header.s=google header.b=tR4/yVx7;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fH0Tk5kzZz1xxd\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 20 Feb 2026 04:18:50 +1100 (AEDT)","from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1vt7fZ-0005Tl-LX; Thu, 19 Feb 2026 12:18:29 -0500","from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1vt7fR-0005Nm-Bx\n for qemu-devel@nongnu.org; Thu, 19 Feb 2026 12:18:21 -0500","from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.90_1) (envelope-from <alex.bennee@linaro.org>)\n id 1vt7fP-0000Ru-L5\n for qemu-devel@nongnu.org; Thu, 19 Feb 2026 12:18:21 -0500","by mail-ej1-x62f.google.com with SMTP id\n a640c23a62f3a-b8845cb5862so201757266b.3\n for <qemu-devel@nongnu.org>; Thu, 19 Feb 2026 09:18:19 -0800 (PST)","from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-b9048d96bb0sm131339366b.18.2026.02.19.09.18.14\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 19 Feb 2026 09:18:15 -0800 (PST)","from draig.lan (localhost [IPv6:::1])\n by draig.lan (Postfix) with ESMTP id 679685F8D5;\n Thu, 19 Feb 2026 17:18:11 +0000 (GMT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=linaro.org; s=google; t=1771521498; x=1772126298; darn=nongnu.org;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=TpcVusHH4ds43Bv7hqrg9C8PwOPYIZ9SdTqnEeifYvk=;\n b=tR4/yVx7frvxu6x3G4jWWCpIBZF7XAmxeLGJVvFxFquiWMUcR5HlcX+Ia4VXDst3Aq\n pkhhj6W0/HfQYkPK7Vf8Q43fATKw50nkznFPrs1QNNUDSghEHGkLGGd5xjhQqp8nMreY\n 1lcrZdR1fHaCf110685jp60K0AGm1nF++Tbysd9a5jpq3V4xK3cY7aVw21RuwmTroww5\n 7EOvoW2K4jc9m1TGIcCVRCkre1YD+2jg+79VVdOQTefsBGF4TkrRu6Y7sPEDASe+b2eW\n cYawi3c/es+y1GDTM9/wbnGBxomQTzhUIHY4BK0oo2nLRuNViMbL1q8hGGFpxQDi/TXl\n h8DA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771521498; x=1772126298;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=TpcVusHH4ds43Bv7hqrg9C8PwOPYIZ9SdTqnEeifYvk=;\n b=kK0XNAX0nwZWjlHo0HU41sC4JroOCtWDjPU+xjaq/H/4aqpqIPE2neztOmTcKaYdSY\n jcmVM3/PKL1R/ihvGeLQXQ/21tnAOAgOQJWkRlex8ObR3WX1Dp/B3Kfow/ifJS22OjVV\n B/22m3gJGXu3a3fShUhnPEdjHcjXzSwE+fNWDvG02O2BeX/tI3k40wXAa2JsyhIVIIi8\n Ui28Q5MLqlZaom7A188huRRYPRF8PGL/5L7vtFwpWs4OuBuh/6X9kyPIA52D2dOqWIT5\n ljpVwwnRWJ5kqjByhR63UCU53YqTedKHLH8y49E+7uPxeM1ayQfocSLcYfoYPAkzeQir\n 9iCg==","X-Gm-Message-State":"AOJu0YwJwo8d3skjanZvYR10q6bUEkvkpefU8hHehyR25nZrPzMzM8nD\n M0cP9VWEn6vCN+LfhmYm9U8WQei2m63XhqBNYMzzREIWnGvu5EuiuTcMvjhPATj9VYc=","X-Gm-Gg":"AZuq6aJDPsw5cb/i6JGbKlo8Wq68kW2bte4CrDfMMaeSlx98H0zjUNFal+1WVC43W52\n Ki51E4FYzNWCWmW+oWFmUW6kpqqv8CRSpQ5iPzq2P0Ss8jt9pMi2nLNneVOs8sf/W4Kx8cj/brD\n kM/MRgt8QU9fh4ySL/l0oGHMCF8wofQ1vRmNC4hxgbNrHc7UfPmJItFlmEIcRHPvuW65bC9oiW6\n rfN4s7CMAtybQv6kTj3V6m/PyM8XzCcRQ1CUV/V6+VwmztVbjVAZU1cUXfMi4a9J9zU87j7dhIj\n LjgYxUOGdDR2WLmx/YYOpwEU6gsAYADPgC+tNpXXcqLT4SnrSN5F9KLOFCVsRb5wcOQfKfk9rQg\n eWNXsJbQuy/ggYluw78H0WCsPLdgJybEblJ9mywio0HjEjaRu9nLq5D+VwkLzcKOG2K9b0keyPv\n Wywn8DSFKIEvG51mtDepHuZr9iVFb9r1yXJw==","X-Received":"by 2002:a17:906:d552:b0:b87:368a:2bf7 with SMTP id\n a640c23a62f3a-b903da48f1amr458184266b.13.1771521497915;\n Thu, 19 Feb 2026 09:18:17 -0800 (PST)","From":"=?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>","To":"qemu-devel@nongnu.org","Cc":"Yoshinori Sato <yoshinori.sato@nifty.com>, qemu-arm@nongnu.org,\n Laurent Vivier <laurent@vivier.eu>, Thomas Huth <huth@tuxfamily.org>,\n Marcel Apfelbaum <marcel.apfelbaum@gmail.com>,\n Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>,\n Aurelien Jarno <aurelien@aurel32.net>,\n Jim MacArthur <jim.macarthur@linaro.org>,\n Eduardo Habkost <eduardo@habkost.net>,\n Peter Maydell <peter.maydell@linaro.org>,\n Bastian Koppelmann <kbastian@rumtueddeln.de>, =?utf-8?q?Philippe_Mathieu-Da?=\n\t=?utf-8?q?ud=C3=A9?= <philmd@linaro.org>,\n Aleksandar Rikalo <arikalo@gmail.com>,\n Richard Henderson <richard.henderson@linaro.org>,\n Zhao Liu <zhao1.liu@intel.com>, Jiaxun Yang <jiaxun.yang@flygoat.com>,\n Yanan Wang <wangyanan55@huawei.com>,\n =?utf-8?q?Alex_Benn=C3=A9e?= <alex.bennee@linaro.org>","Subject":"[RFC PATCH v2 10/14] target/arm: remove extraneous cpu_reset from\n realizefn","Date":"Thu, 19 Feb 2026 17:18:06 +0000","Message-ID":"<20260219171810.602667-11-alex.bennee@linaro.org>","X-Mailer":"git-send-email 2.47.3","In-Reply-To":"<20260219171810.602667-1-alex.bennee@linaro.org>","References":"<20260219171810.602667-1-alex.bennee@linaro.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=UTF-8","Content-Transfer-Encoding":"8bit","Received-SPF":"pass client-ip=2a00:1450:4864:20::62f;\n envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62f.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,\n DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,\n RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,\n SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no","X-Spam_action":"no action","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"qemu development <qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<https://lists.nongnu.org/archive/html/qemu-devel>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org"},"content":"We already have do_cpu_reset called when the system is reset so there\nis no need to do it here.\n\nBy removing this we now only do (smp*2)-1 calls to cpu_reset. Once per\ncore as part of qemu_system_reset and then once per secondary core as\nPSCI calls are made to reset them.\n\nMessage-ID: <20260108143423.1378674-12-alex.bennee@linaro.org>\nSigned-off-by: Alex Bennée <alex.bennee@linaro.org>\n---\n target/arm/cpu.c | 1 -\n 1 file changed, 1 deletion(-)","diff":"diff --git a/target/arm/cpu.c b/target/arm/cpu.c\nindex 10f8280eef2..dadc48e06e5 100644\n--- a/target/arm/cpu.c\n+++ b/target/arm/cpu.c\n@@ -2198,7 +2198,6 @@ static void arm_cpu_realizefn(DeviceState *dev, Error **errp)\n     }\n \n     qemu_init_vcpu(cs);\n-    cpu_reset(cs);\n \n     acc->parent_realize(dev, errp);\n }\n","prefixes":["RFC","v2","10/14"]}