From nobody Sun Dec 14 22:15:43 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=1751540781; cv=none; d=zohomail.com; s=zohoarc; b=hbW19X++I9zRIPXh4NaF/nkYer4vTO6vtU8LZuAapTmcqNQ47rWTCBZmSjjUuLVfQGMlBNcs1Aj3kNxTTUUGl4NFWxzpGwDAZFrtSH1Y+bNPNN0eGW5+H6jFlAfzzJ0TjXsdzH+J1IOH3Htr3ew//+10dfLw/3pVD4EtRUvnuFg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1751540781; 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=SZcPe3nYMdLPvpkVihaPaKQWmWCYPUgBDgbI5JlWA4I=; b=GOKSOJMJpHLiXGbou0KOfU/0B1NMvKikVGCiwKM+0aynzc/2vnMb+uElMacyHafV01rQBjVNUHLNAuoJH5QOGU88ouY5bFGjH8RTOq55ZU6EH+j5vKkR9GuznDvD1vtYIsrdk36a/KWJe+GUtBR6FVmeDFaWwgp2GfMUA6efPmI= 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 1751540781690735.2721263859903; Thu, 3 Jul 2025 04:06:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uXHiM-00032i-I8; Thu, 03 Jul 2025 07:02:50 -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 1uXHfc-0006j7-SB for qemu-devel@nongnu.org; Thu, 03 Jul 2025 07:00:04 -0400 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uXHfA-0003Tw-9T for qemu-devel@nongnu.org; Thu, 03 Jul 2025 06:59:35 -0400 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3a6f2c6715fso5602893f8f.1 for ; Thu, 03 Jul 2025 03:59:31 -0700 (PDT) Received: from localhost.localdomain ([83.247.137.20]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a892e5f8b6sm18670570f8f.91.2025.07.03.03.59.28 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Jul 2025 03:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1751540370; x=1752145170; 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=SZcPe3nYMdLPvpkVihaPaKQWmWCYPUgBDgbI5JlWA4I=; b=UJ7MXwxMuuwYAkKsOoHpFJCmEyG828R8qBa5G26iO8DoEbYc2x/qZPFhNYaP4w5zyT mLtotNLAVJcioE64Uh69k8uskRYqkPBOPZzyqYLD+/L4HsQCYbehoCOVZOXDxpSvBu8h XaTLwPWXuBBrjyh1pe+8NhqoVVRoevGSnTbGYQgoj3bj2hkRsiUZOomzr0Hxw2uq3GsW tGGge1Rw24RyafttIa2zxRTgnIMZsUvEaZg3rAjNm/SsUdaCHyDQuh7+OIXVoA4q6Kyc dDBU+2NXqalMzGc6bJGAqZDe6R8/8wtKDeZOGNuUQTv6fKafhD4em9luk+c6JEeO0nyA moDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751540370; x=1752145170; 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=SZcPe3nYMdLPvpkVihaPaKQWmWCYPUgBDgbI5JlWA4I=; b=J5NHBcLoKJ9t6Kgkc6DgGkTrZ5XUwI2I9rsgfz3T5sKlcnRIUZWv/KFBbJNdxKdDRh jTjqALM1HxgLnvzvkAhjyALKI3oJZWifQE5FOc88sUh1zGo8eKseYjfnDtLtgpo4houo 3Y+Syjtp3E68ZtdcsxhrI2kVnmRlF6ona1mzdWGDXHx3NkWH+WgucVTPHwASH3MfPusk u6AGLD8SKr15EJDlo5AiJYUP3yjyiEMftxNSgEd9o37fH3wk9+X/v9UYQCFXgLeVAaQu dwRIQLfMmUjfws1Twa1OM11RO+fUfk4He/87UWWUWKn5WckHLFNOBueSP476R4dF/QmZ 6i9A== X-Gm-Message-State: AOJu0YwdFoBR3yUud9YbHI2yH+AdqQSMwY0n+oWPQcWsN8Ecxcu6B+ZS 2WLq4uFatf+6GXrlI/alUvqa0393y/ukEbH8Un3VAri/gq5TRksCxUaNqk22Ac006W7DuRH3UmL U/++8koE= X-Gm-Gg: ASbGncsR29Sqh2efLO+CXq7NSN+G4+faNL2YV5j0bjt7KFhJTx9mbDQ51viSL2hD6nM J6n2Agq3DiyF0VEGYR3BSUII51xcsabFlZwzc+0YeJlh4brcM/Khc/8UFyVU3lK5NXXPkhGwbSB crZQhzLFPDE/NTmvTEpyzQpCCtPcnoV7QZlTyAqiruRwBQMCRLbtgAXLvICZT6cnrHvGyO6fL/W 2TGoDgzZGs4RUdgxmA2Gqdmzij+qM1wYzA+/IH0WMrvWloOqMYCxfT/AMF2y848Gzx5LyYpyx24 lPW5gWYUk1adLandw7D7oY3W39Jn9dukhK0DI2lZ+USPjDvg+s4ML4gJinZL99kMsFO/UDtsCzD mZJW18GQI2LcH8euMUtVGQg== X-Google-Smtp-Source: AGHT+IFwze08KXrOCaSqmcyC/CFjfj8WXq9xrhVTjrBsf+XDLBCCaa31XIZMiSWUsLRl+UJN8QFeBw== X-Received: by 2002:a05:6000:4013:b0:3a4:cb4f:ac2a with SMTP id ffacd0b85a97d-3b1feb84b5fmr5425886f8f.21.1751540369971; Thu, 03 Jul 2025 03:59:29 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Pierrick Bouvier , kvm@vger.kernel.org, Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v5 43/69] accel/system: Document cpu_synchronize_state_post_init/reset() Date: Thu, 3 Jul 2025 12:55:09 +0200 Message-ID: <20250703105540.67664-44-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250703105540.67664-1-philmd@linaro.org> References: <20250703105540.67664-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::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.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: 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: 1751540783002116600 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 ac0283cffba..77bd3f586bd 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