From nobody Sat Nov 15 15:28:30 2025 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=1751381306; cv=none; d=zohomail.com; s=zohoarc; b=Qd9T5Qk9up46HbGP9wiecW0xp96UO2rRuRRaMxBIjqrDZGCuD1J8Bjc0Rl/rmTZOmf4t9HC6467tdQhcM+LRTVqv3L08PckFoBobN3TrbvGqHsGh2M2hzhQq82TNSgyhPcADkWk6G09FS1dq/JXoIlNcSvOFAFHan1MQV/K7ok4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751381306; 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=L5D49Z9XCFxUaDjkyBITf0w2sDJEmWM2AObcY1hT7No=; b=k2BTTzMzDQ6luwphmGoiaaWwcW+QW11has+r8d+7v85J8Jca8SqEGa4tUIO/hNnUU0HBnlCbV4wmEiyYPMlMNSNEuVfDAlpT/X7XqRz3+fScS+9WpbvxCNoThBplt1ibjf/PNK2f0dkevS37hJcKXQagBApHcBQQPUEetYIwjCo= 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 1751381306307892.8761461856266; Tue, 1 Jul 2025 07:48:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uWcDB-0002kJ-8J; Tue, 01 Jul 2025 10:43:53 -0400 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 1uWcD7-0002gb-RB for qemu-devel@nongnu.org; Tue, 01 Jul 2025 10:43:50 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uWcD1-000768-Mp for qemu-devel@nongnu.org; Tue, 01 Jul 2025 10:43:49 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3a528243636so3635690f8f.3 for ; Tue, 01 Jul 2025 07:43:43 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a88c7e7386sm13321652f8f.20.2025.07.01.07.43.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Jul 2025 07:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751381021; x=1751985821; 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=L5D49Z9XCFxUaDjkyBITf0w2sDJEmWM2AObcY1hT7No=; b=CbI1g+kIU/uHw4mnuhAknYMFY45Orn02vqfmaU8OXFwU/7R+YNzC9UH35GEuJCqvTs jBERDdnK+2hbayMKXyBXBbSXy1gCJ4mMcbG1QS6H4yslOa9EiQsPWb+cn9OP+3HLhTAr NG6UsFUqn2Hgt65n7XbM8n9AKu6Xzz0OrsnC16C9rXhkVJelMphAQWpamKW5MGoKSeVx /FSjXcW7aZx2QaQZsH8/rq+Q6eEuoX9otU9RsafE2R6tbnj/V9mvGfeovdRvSUsoR0Jo k2JhIhi+VQouebrQH7nt8kYMsVEtySZ5uxsElhN6CKyuF6prGpv8JGiC3R+hQsLsUTdW HTBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751381021; x=1751985821; 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=L5D49Z9XCFxUaDjkyBITf0w2sDJEmWM2AObcY1hT7No=; b=GRvwf5qLhUTuNOHAOMiXncbVWKh20dAk+YjuiMeR2Q6Jh0GN19oahceFdE77QjUYzy c17oTc+gZfunNrgCtCoMsEFMamWs1iQPYUyhHcnsvniHfB2Iqo25GvF96Zbj51MQBpqU UWgcoG8T0MJRBKxUA8kRAc04XOuDDyBrY8EvH3JfYzS2HfzJd/J2J2EezMYhTI44Q96C 7TjJgyzynx+40bv1Cb3KVJn2C+MKJY+vzuTCMzynBemVK1fpf0TULf8346dHQPc5k3Wq NzOHaHatU6g+nOzs1Yl8oPMVO9Jtv1K75sTONa11kSjZm6lMyv84JadyjvwtIS00plvl n5LQ== X-Gm-Message-State: AOJu0Yz0If+yL7cgOEyEKp4h0RSDq6DIfokPW76UyK4rNhI7ASau8u+/ H4s6MS34/Ww/JXHAekO3FB6Hh6EvY6sTOUy0nNBGo5WHSf/TQHTF8yoKzAO4NYtHGPKrgKAEtPG lpJmC X-Gm-Gg: ASbGnctVcZYnAv9gZmT713nZIeTWp73t1uouRZLXUAAQ8UGFiSrPPwd2hZEzgMCfHYF qW584nzud3EsZOEbGfntp5yz0mcIIQJPXRm/TvIb9lv6ri39TM630Q3qFkEmVaWzxYIBg4wSFRV mU85T3sXtFhvVGNtjpK/c3zffxKXr0Dbhc6/Yp8Uig6CRTX8fjtg+6rpa21iuCmn0588aYJpq5H X/c9qbpxKU/QCMz80p7tBTmnFfCwOo8ZilyqBdoyg7F6gZ35s62mK8pYumQMYVIGTJXuj5Ed/jM PGEZ2Pjg9LFJrvmQwgtrkNclmvlTQWuWoZ9mgu799nqPx3KxIy0NmCQG7iF1W+h/2YwKKeXBx24 idh4KUAq2h4yw8L4XMNGwKRz20C95CAjj5hwi X-Google-Smtp-Source: AGHT+IFAnWxMJPRJxeCqSPcNXzKttmyIo/hxKdhWVvFtL09cmOIBoivMAXNOgTshJCs+453vRvYAjQ== X-Received: by 2002:adf:b60b:0:b0:3a6:d7ec:c701 with SMTP id ffacd0b85a97d-3a8ffcc9eccmr11495743f8f.30.1751381020816; Tue, 01 Jul 2025 07:43:40 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Julian Armistead , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v3 38/68] accel/system: Document cpu_synchronize_state_post_init/reset() Date: Tue, 1 Jul 2025 16:39:46 +0200 Message-ID: <20250701144017.43487-39-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250701144017.43487-1-philmd@linaro.org> References: <20250701144017.43487-1-philmd@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::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1751381307571116600 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson --- include/system/accel-ops.h | 8 ++++++++ include/system/hw_accel.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/include/system/accel-ops.h b/include/system/accel-ops.h index 6f9aebbee8f..14113bb5c10 100644 --- a/include/system/accel-ops.h +++ b/include/system/accel-ops.h @@ -43,6 +43,14 @@ struct AccelOpsClass { void (*kick_vcpu_thread)(CPUState *cpu); bool (*cpu_thread_is_idle)(CPUState *cpu); =20 + /** + * synchronize_post_reset: + * synchronize_post_init: + * @cpu: The vCPU to synchronize. + * + * Request to synchronize QEMU vCPU registers to the hardware accelera= tor + * (QEMU is the reference). + */ void (*synchronize_post_reset)(CPUState *cpu); void (*synchronize_post_init)(CPUState *cpu); /** diff --git a/include/system/hw_accel.h b/include/system/hw_accel.h index 574c9738408..fa9228d5d2d 100644 --- a/include/system/hw_accel.h +++ b/include/system/hw_accel.h @@ -28,6 +28,14 @@ void cpu_synchronize_state(CPUState *cpu); void cpu_synchronize_pre_loadvm(CPUState *cpu); =20 +/** + * cpu_synchronize_post_reset: + * cpu_synchronize_post_init: + * @cpu: The vCPU to synchronize. + * + * Request to synchronize QEMU vCPU registers to the hardware accelerator + * (QEMU is the reference). + */ void cpu_synchronize_post_reset(CPUState *cpu); void cpu_synchronize_post_init(CPUState *cpu); =20 --=20 2.49.0