From nobody Tue Mar 3 04:56:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1772107092; cv=none; d=zohomail.com; s=zohoarc; b=NvJhQf1GeHV8eymFgUH0D4PnQ9H8OREwYISzhuPmG9pYHrjYCF8jDhQrRZ+bHlIPuFUcurPJ8wCr32UGawNj0FzZjcj4qNVIdiFg/B9MfePWCF/vKUsSESn80SOv9sk13zy/5xjVbK4hZllWlfz54otevAT7zIPznrw9LjJONF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772107092; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=pu3ONN1y8CnzVPPPqwVx01znDwKu8x6AESEnaYZMJ9s=; b=ZFjmiwb2TenFrtmhE4TWE4oqYwB9PPeR7zUariY01qoVR/ecD+YwIIOJwyCK8A9Va35CyhFwVqt8Ov/5PCvsXvED8yD5UD+qxvt0yXOxLkrUn374xaYMXUW7FB78JSdK8jxBFZw5HALCRhO4VStKWL/siBZVEzi7mWwCLva9nsU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1772107092157676.8700755316796; Thu, 26 Feb 2026 03:58:12 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1241586.1542613 (Exim 4.92) (envelope-from ) id 1vva0D-0005Ky-Ap; Thu, 26 Feb 2026 11:57:57 +0000 Received: by outflank-mailman (output) from mailman id 1241586.1542613; Thu, 26 Feb 2026 11:57:57 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vva0D-0005Kr-8I; Thu, 26 Feb 2026 11:57:57 +0000 Received: by outflank-mailman (input) for mailman id 1241586; Thu, 26 Feb 2026 11:57:56 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vvZuD-0006EH-2R for xen-devel@lists.xenproject.org; Thu, 26 Feb 2026 11:51:45 +0000 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [2a00:1450:4864:20::329]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 84fdef89-1309-11f1-9ccf-f158ae23cfc8; Thu, 26 Feb 2026 12:51:43 +0100 (CET) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-483770e0b25so7372105e9.0 for ; Thu, 26 Feb 2026 03:51:43 -0800 (PST) Received: from fedora (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483bd68826asm220079295e9.0.2026.02.26.03.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Feb 2026 03:51:42 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 84fdef89-1309-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1772106702; x=1772711502; darn=lists.xenproject.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=pu3ONN1y8CnzVPPPqwVx01znDwKu8x6AESEnaYZMJ9s=; b=Q55DSSMxraHRy7VcTNID2XI8TY6x676cdTOzNAOP5OHe7mZAsfjVKhIq2qvfXQWnON IM/KYhvuy2xXxl4ON4o3Kj2Rekkw3cwtDSGZ6oNg7F8XcWiPAbmQA3yBarrsjR1GKq7W su0EnUalICO7LpgpHyPrVK8gUaq/5S+5yPMxwmM3H4395UVtpUdbrs7IrRTMvbC0YYdY EYUR/r9DDAjE/tcIkC7kovuc4zOx9o/z/Czt7uT7PkFQZm6SzSDw/dfzFvsH5WlfQQbB A3KBcSxg59aybm3WBt3g8jMJGzkOc+YRpHRCfFmYb/CI7r63BW4MYVR8I++fn8ge7OcH oZJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772106702; x=1772711502; 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=pu3ONN1y8CnzVPPPqwVx01znDwKu8x6AESEnaYZMJ9s=; b=qBOeUKxZpjHBGYzGFQD515EAN6sSXznSpotaausb0b+HuHdnTcgUwFnOJe5+05a5hK d8x4+pUaAmJ8+qTzAJE3L5oQzt6U0aNqaoQmurrjtwdxFwO+kUQs1TC5Zmmw47Eo0qGM +9RZs05KobGecxNPrWDSdqO0YMeS6vRKa70pYzRMxg1vU4uTYg3RBaL/zJpmqfv8ZkKz jMeDguVkKpCkktxZio5YfIQanr0wCjkBYGltb1bnLacBb9jDUhtuIfBLBt6zXhLGtL5Z 4Gjb+KZLEC2UUuKDdMDVCypgGEdYifqBMNt+fvbC/QBIviT2Y7wUlYzXN7oyRznXtLKI VOLA== X-Gm-Message-State: AOJu0Yy7tYO8OsoN/W0GPJX6l4QA+GRBj7hHZdrr8MkyyT8FeK/ABrRj TsaPlFKgUcL6FnxKiFV8XJr1ljDgBJm6hEKcSa+wqOgrqH4ZQxqjjDBXyXmclg== X-Gm-Gg: ATEYQzyc4ywa/5ZfVE704iMmmtv/n27V7JSxwh0fXxcYbSfr3do9KvZvEis2NKmjZcj l8zuynT5haoGWNSUOwngHujeILq1oPDLG1CsfwEZfo2vG+PwL+mpRoKk/VfOGAm5HO8UDwJNFW8 +PU+T7ZlzLxEb1Zn5e/p9O/jkn0Wq3DeNW/dPBFOxpAEncmUVdR1Ly9DpLktOVVolyE2FSGG99v NfnrzKAzN1WkxnTqJVxEiDiMRkUcD5ARCA7HnQ6PMpvIdr6KTZ1sfm61CU7D3PEauyzCt1rlmGC Y/jbmj5RsNVtkjcg9GjV3pdD7W0JRGMZl/tKkymyxhd2iwyhEUZc6x0GQxGx55mBgodzhqA46dd fBGOivSxJvnBiHlYeAKJDE9PBnUqxWnLln5KiRTzS+nHJpdhSM1f+qiM6R/SaEZR3KXWz2E/M6a TBNOPGn7yE9dJlC5md3P93atDShloL4h/GdZOKwdPxf2hhTRzRTxMmzP4mkDcMBF9ZZat+yw== X-Received: by 2002:a05:600c:8183:b0:477:9dc1:b706 with SMTP id 5b1f17b1804b1-483a962e3d4mr287053045e9.19.1772106702486; Thu, 26 Feb 2026 03:51:42 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Romain Caritey , Oleksii Kurochko , Alistair Francis , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v6 14/14] xen/riscv: implement sync_vcpu_execstate() Date: Thu, 26 Feb 2026 12:51:14 +0100 Message-ID: <9572c925ccbed3fa391b3a0c9d8eddad87c49ab7.1772016457.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1772107098711158500 Content-Type: text/plain; charset="utf-8" The scheduler may call this function to force synchronization of given vCPU's state. RISC-V does not support lazy context switching, so nothing is done in sync_vcpu_execstate() and sync_local_execstate(). Signed-off-by: Oleksii Kurochko Acked-by: Jan Beulich --- Changes in v6: - Nothing changed. Only rebase. --- Changes in v5: - It was something wrong with prev. rebase. Drop stubs for sync_local_execstate() and sync_vcpu_execstate() in this patch. --- Changes in v4: - Drop footer as [PATCH] sched: move vCPU exec state barriers is merged to upstream/staging. - Add Acked-by: Jan Beulich . --- Changes in v3: - Align sync_vcpu_execstate() with patch: [PATCH] sched: move vCPU exec state barriers --- Changes in v2: - New patch. --- xen/arch/riscv/domain.c | 10 ++++++++++ xen/arch/riscv/stubs.c | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/xen/arch/riscv/domain.c b/xen/arch/riscv/domain.c index fda8cff90f6a..6e852d3b71c2 100644 --- a/xen/arch/riscv/domain.c +++ b/xen/arch/riscv/domain.c @@ -279,6 +279,16 @@ void vcpu_kick(struct vcpu *v) } } =20 +void sync_local_execstate(void) +{ + /* Nothing to do -- no lazy switching */ +} + +void sync_vcpu_execstate(struct vcpu *v) +{ + /* Nothing to do -- no lazy switching */ +} + static void __init __maybe_unused build_assertions(void) { /* diff --git a/xen/arch/riscv/stubs.c b/xen/arch/riscv/stubs.c index 2f3a0ce76af9..acbb5b9123ea 100644 --- a/xen/arch/riscv/stubs.c +++ b/xen/arch/riscv/stubs.c @@ -91,16 +91,6 @@ void continue_running(struct vcpu *same) BUG_ON("unimplemented"); } =20 -void sync_local_execstate(void) -{ - BUG_ON("unimplemented"); -} - -void sync_vcpu_execstate(struct vcpu *v) -{ - BUG_ON("unimplemented"); -} - void startup_cpu_idle_loop(void) { BUG_ON("unimplemented"); --=20 2.53.0