From nobody Mon Apr 13 05:23:33 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=1771000721; cv=none; d=zohomail.com; s=zohoarc; b=D2/mlsr94vl9d0NC85u8GsUdWMnpYCD6uk16ojDFDebci32t569bCH9RgtzVH/4qNFQoZDj0p/CGZggxkgXj2Jiko898JDvZ0u0zdaVzw2oKGAOkX6gagPTmfiGzzdtVkeWANHd//fJX/mCsYK3mUoqsPlz8giwdfN/0h6+0Q7A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1771000721; 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=aS1nE3ehxrhnhvUQVu6uQ+BpfKhXXAT1M63On5oqAkY=; b=eBf/JAFv73ftWV54B4m/Gy2Z/cp9+2aQSwGZI/GvYuw66kkZ769uGHX4uOllmHu9nirp/s/seAn+3NsTLEHVYr180IJc6BflmTyPZ9dFV+gNh4VCEbgIEzusCGdGFXCW6ontyqvcPZrqFMV5A35CLEdTqFJc6pmhq3X7AGdS390= 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 1771000721545666.5299608227741; Fri, 13 Feb 2026 08:38:41 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.1231469.1536661 (Exim 4.92) (envelope-from ) id 1vqwBS-0007i5-TN; Fri, 13 Feb 2026 16:38:22 +0000 Received: by outflank-mailman (output) from mailman id 1231469.1536661; Fri, 13 Feb 2026 16:38:22 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vqwBS-0007hy-Qg; Fri, 13 Feb 2026 16:38:22 +0000 Received: by outflank-mailman (input) for mailman id 1231469; Fri, 13 Feb 2026 16:38:20 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vqw2r-0005Ws-ED for xen-devel@lists.xenproject.org; Fri, 13 Feb 2026 16:29:29 +0000 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [2a00:1450:4864:20::334]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 2b0d0c2d-08f9-11f1-b163-2bf370ae4941; Fri, 13 Feb 2026 17:29:28 +0100 (CET) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-48329eb96a7so6943105e9.3 for ; Fri, 13 Feb 2026 08:29:28 -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-4834d5ebd1bsm303288185e9.6.2026.02.13.08.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Feb 2026 08:29:27 -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: 2b0d0c2d-08f9-11f1-b163-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771000168; x=1771604968; 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=aS1nE3ehxrhnhvUQVu6uQ+BpfKhXXAT1M63On5oqAkY=; b=QquHo+ZOLXR7e6DaAfPCjwENioUnmhLDXbPCUCRaGERV+KCA2lyFfHGaykWsKpTm2r 9pyXH1lfiOZG6GRENrkVdY1dJYUK/BCTV2rWFHeIzyNAO9mMCWqr/tHt1liQ8vH2kHjt JtkcNaWWP6+rsUKvONffV1WJZzVpDAnuofrRvzzmeHcZ4ITYOAdDSHr5wL0fwInYAIux ICwywbePxlQO8ypjgYSox1/ivDThJKoMTGmhBAaGj3rioZJXl+Cq0viPEe+NOAJ9DPn2 1q6N/LuhFhcdzrnvJ20KmkB5CuEGOdSYFjcvaQ076ZU0s8/S+bn9IyXA6WYgze5+NLOA nehw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771000168; x=1771604968; 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=aS1nE3ehxrhnhvUQVu6uQ+BpfKhXXAT1M63On5oqAkY=; b=JtHKsf+1YrqABRiozdKk7bFHtIx8kbQRz1SCGAyTPzTo30Zq/PPJbh8tyv8raIkajB 8VrNRWobXuAZF7lfuQezZdLgzpWCw4EHItsTMy8O+/mXQFS5wKIoLXMYqsBqbXJ/6Sfc C0BbPPWrswwe4n7ggzw3RG8QlkKDKy6P6i0nKv7waLQTViqRgxaj9j64BePFOZ6B1isH xbtRckgI2niAFRjItHWCy+EwZ2LiCNNAJOfoh1xdv8ynVP96nUX/SnFtP8zATHt6q4V5 wWmNGGkHvfLu7AtAuku/+CzTF47fG9eeUyeUMpCona/Hrmo11HW7sHXJWnWRcKauvFMR 9aHw== X-Gm-Message-State: AOJu0YxvwGlgpI1c/7Cs25lQe+GsVb6+PwPjnbBgjbKPUW1NZJcOtXMB em0ulHltVZQpDEF8Cc7cFxexLAGej18S/YIa0BTScIW/tzpM4h6xiq4HV3lWu8N9 X-Gm-Gg: AZuq6aJM3TKxhtIBj2Iw8QUWwXozPR8s9EhUDYoFdRLrlGtN0kgRpW6yEEtJ4ci2ndm hXvXvIVW+/Xhcita3N4aXkQq+Kfv0nLjDY1+6mOkKEd/hwEBeIsS7rBidiABx5d2Wa88+g2B5R0 5NNKaYeJtiYF0Nw4Da/pHQeZxXGsj1//1EDJ423PYqpEJrIF2y4wh6luRiqoV5VYDYvDU0HSq67 eH531lvpxn5dwM9Li41jOply1AoYrCNO1rmkH+lpvM+JTPNmCf3v8A67WqjCRSgYwH90sr7nnM0 HhEuoTYsinJ7yJIxlPa8DVNUlGgmCNpvDiny3SITt7OU8VJo6d/xccrXsKIeEflAj1AN0tfv1Le CODTuiF2SkEDzrMxC1ppgx3ZND8L/EPLcwpsLwayLForYHHBUbKIcofdKr7G3b/UhIo4Nc9cchd dAci/T2fK4MOaUlbRVCgtrXGX0HaSQ2tPQEue7JfX7KXyjpYozHTK9WREp4W06cOuqyg== X-Received: by 2002:a05:600c:474d:b0:47e:e72b:1fce with SMTP id 5b1f17b1804b1-48373a59a59mr42787315e9.37.1771000168120; Fri, 13 Feb 2026 08:29:28 -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 v4 16/16] xen/riscv: implement sync_vcpu_execstate() Date: Fri, 13 Feb 2026 17:29:02 +0100 Message-ID: X-Mailer: git-send-email 2.52.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1771000723095158500 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 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 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xen/arch/riscv/domain.c b/xen/arch/riscv/domain.c index 307da467c72e..6d3d7277bf8f 100644 --- a/xen/arch/riscv/domain.c +++ b/xen/arch/riscv/domain.c @@ -249,3 +249,13 @@ void vcpu_kick(struct vcpu *v) smp_send_event_check_mask(cpumask_of(v->processor)); } } + +void sync_local_execstate(void) +{ + /* Nothing to do -- no lazy switching */ +} + +void sync_vcpu_execstate(struct vcpu *v) +{ + /* Nothing to do -- no lazy switching */ +} --=20 2.52.0