From nobody Tue Mar 3 04:56:06 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=1771604868; cv=none; d=zohomail.com; s=zohoarc; b=TpnqHtod7KohM2BfrnxaPW8y+1LJnniBpG/Ffx2tdyvcMfklYGFbPfeUm7gpd8RujjzqTdb9SjugJdwQ0g595FRAVQYDwTnum6GuERRsxOH89lxGEp81tedibdHG6vSk7cqx0nxGEraGKw2nP1n3cqFo82eIs9OpsEB2h0mrBqU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771604868; 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=mxX3OIZ6fZxPE5LWGOGy7jniho2pldOrYX/WsQ7ZseY=; b=KDlpO55O6FE6dCCQ7h7yzlKEZ3kLxvUwTxrWHK5KZCkLy+sINKnvDkDWVGQzYCY86U3HSoMYKu8tvq2UomkaoE0kwu2WD4zQ+UMqDEcbaJGXQL7sBlNa+A/UGFTR09P488Evqs9wuTAatDneEPf3pdM79GlYQajSq9cEASUgzt8= 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 1771604868461597.7377939032135; Fri, 20 Feb 2026 08:27:48 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1237427.1539819 (Exim 4.92) (envelope-from ) id 1vtTLm-0000Cd-LR; Fri, 20 Feb 2026 16:27:30 +0000 Received: by outflank-mailman (output) from mailman id 1237427.1539819; Fri, 20 Feb 2026 16:27:30 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vtTLm-0000CV-HG; Fri, 20 Feb 2026 16:27:30 +0000 Received: by outflank-mailman (input) for mailman id 1237427; Fri, 20 Feb 2026 16:27:29 +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 1vtTE8-0000Q4-60 for xen-devel@lists.xenproject.org; Fri, 20 Feb 2026 16:19:36 +0000 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [2a00:1450:4864:20::42f]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id f19f704f-0e77-11f1-9ccf-f158ae23cfc8; Fri, 20 Feb 2026 17:19:34 +0100 (CET) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-436356740e6so2400953f8f.2 for ; Fri, 20 Feb 2026 08:19:34 -0800 (PST) Received: from fedora (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43796a6c1bfsm56991068f8f.13.2026.02.20.08.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Feb 2026 08:19:33 -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: f19f704f-0e77-11f1-9ccf-f158ae23cfc8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771604374; x=1772209174; 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=mxX3OIZ6fZxPE5LWGOGy7jniho2pldOrYX/WsQ7ZseY=; b=aQ+mBjmditTabdtTiLen9Nn1Q5/ciZQezC6JmoZfKBlC0/4Z/Zjjig+CAh0ZddyTTM 76NQrtQa/gfUSq9r9TUQZZmK5pUuUhWzlZZrWmBpgYb7Szsib6/70rAuklOuuzv4Ad2G 0u/s0bYGsa7axWWJJC7aUGD67R5yRiBZpUoJlfzzG6uAlZTGFFJ2CmTzjQI7z7LQexff 63i0bzXWedx5peu2BOnXCxjkjeVDq8gaNVKyz+PU0hObRR12CyFN9xcFELZKFucbAISA uTb3gSNXBN6Iga6ivTZCtRjYsbdRaYIbbpuh06gll1c6pWhPgSKPBhpRvKXIYV9m5++P tHsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771604374; x=1772209174; 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=mxX3OIZ6fZxPE5LWGOGy7jniho2pldOrYX/WsQ7ZseY=; b=r5UiTyi4JQZW/eBMlFVZoFE56gNLpoUmk/Iqq6psJfArJnEoh6w5Pk44XO3n/oNlA5 jdcJh2HjDsSd7frqkPPSSz7IdleqWFOOQoXSNenE8Ahccl0pRn2IHog7B0VQGNeNJ724 bBJQpmHtJz+zdbLC8QcewlGWNuMKPoPJr2pkN3Cn4OmCc8SkFZGODvsyPC43HNuSlbHS WHvZLH3aq2FF6+dYmVUsYZy03/QZMC9jV2ZCtiqm9r4dcnv7yi8M/TnpAVKnZb9ABwyr vXTPN9eQ/ImOsZQGW2IVyV4oMKixN1Qc6YZ859TTrdrC3OcAu58eY94P7M3d9vseqWYr TKGA== X-Gm-Message-State: AOJu0Yzqp+mN5mGxgyNirx5QnmtkZMdWtb+/hvFj3jxwtpHP0zIWLPrn 7IvHHAaDJkXe93mErKYHG9PICCkXr95O0dcmasW2GvJy6R6flD2PcZBBQ1Jq0A== X-Gm-Gg: AZuq6aKa4KNQu3wOGshxZKQkwuVZyLSOayqLro28fbXp/zjJxSo5FlPFFQUvRkzA+ji Fx6GV1uvU18RJrgu+TwLIeyOe2NzxpCeChBRKwhqWM4QyvwOhWoeP7ja81K+PuO+bRn7YRkF0gA TduAj1f0gOQdldsWw3q8+ReEvY+532EEJuBAjG5XcB2a5cHav4la5Pg1NcKCSh8JrDuBLTrYigW lurjcWBel45VG/NxQDxkXgHr9fGq9P0IinSuUuy0FUfed6t83fAEK1n/itwD4wI2R0QZdBqiVEI 4ITzTOBiof9GV6MwWTmGy6pUP/1eLYJAoRpvDk8+sok7WAm5ij+u74EYGHPb02vPliCzRw4dQsb BF198VPADKPrBWJFp5QXP9mqAxbDgHuB2opyRL4JVndK/TcGJJnm5YMa9Oqy2McKdMsePNsZONs 8JISIvQcedqa6VN6YV/zUjJWsquHqsDnG+2YxSxBMxDPsq+bArjE/eZXkG/BcSO199DOItVw== X-Received: by 2002:a5d:5888:0:b0:436:1517:aeca with SMTP id ffacd0b85a97d-4396f157d2amr785935f8f.15.1771604373504; Fri, 20 Feb 2026 08:19:33 -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 v5 14/14] xen/riscv: implement sync_vcpu_execstate() Date: Fri, 20 Feb 2026 17:19:09 +0100 Message-ID: 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: 1771604869917154101 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 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 fb5c21078172..f3b22d05071d 100644 --- a/xen/arch/riscv/domain.c +++ b/xen/arch/riscv/domain.c @@ -265,6 +265,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