From nobody Sun Apr 12 02:50:41 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1771521612; cv=none; d=zohomail.com; s=zohoarc; b=TGIagLJUvhOowqw+JscPVAqLUQPBt8YrpBHdMS+dTRpoYKymHQcRsIViBnE19ACjguXNHtFLoTdA3p3OcUC+62F+eVVNrxqakW+22uBK7rKzeH5D5YUf5g7wU0a9AP1J0yBDNLQD6V9Ax1zkO1VDm6fHJMnJLE4TrSY70zMZrQ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771521612; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=tCDkr1jO2SJrSBq99OhOFgeCFzvnaZH4BPYFgm6DI20=; b=aqiPLdnJ7CD2trDx1jZAnDlOKT8Pp439i24uQfdKRZOp6yHJhvqMg6sNZhKlY3DMpMLqlY9qIcq65LuGfORpBDKpZdoDxete/pPcDcCV375aaXqIzBc1RqhetDjxAzYOK/nDIPOYyunagQIlQ4X5k+wyUbGfal7IP+dIOY8d3c4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1771521612259665.0298632643793; Thu, 19 Feb 2026 09:20:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vt7fa-0005U6-Gt; Thu, 19 Feb 2026 12:18:30 -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 1vt7fU-0005QU-P6 for qemu-devel@nongnu.org; Thu, 19 Feb 2026 12:18:24 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vt7fT-0000Tn-Bx for qemu-devel@nongnu.org; Thu, 19 Feb 2026 12:18:24 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-6580dbdb41eso1528223a12.0 for ; Thu, 19 Feb 2026 09:18:22 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-65bad2a9d1asm3984008a12.15.2026.02.19.09.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Feb 2026 09:18:20 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id BB66C5F8DB; Thu, 19 Feb 2026 17:18:11 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1771521502; x=1772126302; 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=tCDkr1jO2SJrSBq99OhOFgeCFzvnaZH4BPYFgm6DI20=; b=U9y3tvTGjJTwQ2i1M3/vRVzYcRWBDC+WkX4CIQioYXmVBUglvHWRh6bZAdnmn4H02E 9q+H7t8+5v/n80SaJiVPkMLZuwhcrVYULO9uG9hOU6QvkxlFEB/rDbUsmCZRAL1ladeK 685PKDTHS8KT/o9D2aoE/cahZsIozeLSa1L0E0TwScUVLhBaCTkc4umQOf3XMFXaE/Pn LT3mjftswObJ8xz9qk9eNBpWDURIHr4umqvlT0I90RgUcZG8OLOmbnnK5u/lKI5LsbQn DB3d/JPywG8DL7KIEWJIZ4Vc2/3Y8GmbtoFrwMi7pyHBqWO62zVIlc9u6o3nsEF2fisS WeSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771521502; x=1772126302; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=tCDkr1jO2SJrSBq99OhOFgeCFzvnaZH4BPYFgm6DI20=; b=D4pYSzHIW2lWYnVR4rjBAD1VrDSQ6m1ypmFxAnSpCfiAd0MTaLlWJzEzKfpZenmJto c+14P2YFd6ZmJimYA880a+fC6Dl4ZAmQpKhXjQGd06qCFoC5I8TQ0ojGw4CkHWNKEVme XGzLPCyVPzr1MFdXmKE2CiCaROKwDuNNSMf/Qofg5jXieVUv6YLIqDF54JoP3L2V8eU/ CVvTtFuvTq4WdoID50uZ1tX9zhhwNKBV/FgO0mISuzCVZ6GQIrScYAxxI821yAf5jx+d gY/ajEtIEtvDZSA1Lrf51PsgHGT64ONiyZujgwwpXz/8pbLj+2zgB42WtZUaDoSDBitK VBeg== X-Gm-Message-State: AOJu0Yx9BRj2c3Lt4HlPaLKWWIwBQVXxttHOx9i2hQR8ejlqmeTcbRnq xAep7775pfGCSYYIfmFxCRrJJptj3zHOfEZMCAMZVHH48/wcBSyCh7pCqQT2KnnMzCA= X-Gm-Gg: AZuq6aJpk3wVH0857hoDld7nnkicAgPb6mvaORcOevk9SQgnX9yCyFervX9kTJfggMD njKKqpF0Oaz+Dn7gr0om7OKD8iWqb7+59Fv89L7APlD2VJRWfWB4+ChccuHzYoFgNYGJrOVBCTR NLOz1FsVU3EpOzf0JQbLZdpDxU1q4F2GkwEQOZVhW9tfuCPcfx0H2qxLqt9rBQM/OJgBRtz/Kwh W+EnwLbfUHtBRff/zi7/GQnkes2FuJ4AZI8/ldU6TKWKWeD9ABbzt0GwYlWJtrFDb4SaC6eLwPm 4vcr7KznppMYba9KLHoJS28V1Nhw2oIADG660+fYhgSHnmIo6Ggx38+cMoO2xWFfcm+J+12qc0B XqyfmcWd6UFoXMvDbnR2ytW2QvVUP/vxixMVnqn0yQic3KjYL4geOmMZ9lkOAjdwDudbIZTBgE+ ej78FS4BBO0P4H9fW5WzRNgbc= X-Received: by 2002:a05:6402:254a:b0:658:15c4:6790 with SMTP id 4fb4d7f45d1cf-65c76a13a38mr3577387a12.17.1771521501815; Thu, 19 Feb 2026 09:18:21 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Yoshinori Sato , qemu-arm@nongnu.org, Laurent Vivier , Thomas Huth , Marcel Apfelbaum , Akihiko Odaki , Aurelien Jarno , Jim MacArthur , Eduardo Habkost , Peter Maydell , Bastian Koppelmann , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Richard Henderson , Zhao Liu , Jiaxun Yang , Yanan Wang , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [RFC PATCH v2 14/14] include/hw: expand cpu_reset function docs Date: Thu, 19 Feb 2026 17:18:10 +0000 Message-ID: <20260219171810.602667-15-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: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x530.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 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: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1771521614813154100 Add a hint to the developer that this should only be called from a reset chain. Reviewed-by: Richard Henderson Message-ID: <20260108143423.1378674-13-alex.bennee@linaro.org> Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- include/hw/core/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index ef20cb356a6..89934b8efe2 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -815,6 +815,9 @@ void cpu_list_remove(CPUState *cpu); /** * cpu_reset: * @cpu: The CPU whose state is to be reset. + * + * You should refrain from calling this during CPU realization and + * make sure this is called from the reset logic instead. */ void cpu_reset(CPUState *cpu); =20 --=20 2.47.3