Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DBC2DCF45A8 for ; Mon, 12 Jan 2026 16:54:01 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.1200808.1516643 (Exim 4.92) (envelope-from ) id 1vfLAn-0005jo-6V; Mon, 12 Jan 2026 16:53:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1200808.1516643; Mon, 12 Jan 2026 16:53:45 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1vfLAn-0005jh-3S; Mon, 12 Jan 2026 16:53:45 +0000 Received: by outflank-mailman (input) for mailman id 1200808; Mon, 12 Jan 2026 16:53:43 +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 1vfLAl-0005jb-Kz for xen-devel@lists.xenproject.org; Mon, 12 Jan 2026 16:53:43 +0000 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [2a00:1450:4864:20::52e]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 3c0795ee-efd7-11f0-b15e-2bf370ae4941; Mon, 12 Jan 2026 17:53:35 +0100 (CET) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-64d30dc4ed7so12944776a12.0 for ; Mon, 12 Jan 2026 08:53:35 -0800 (PST) Received: from [192.168.1.6] (user-109-243-67-101.play-internet.pl. [109.243.67.101]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6507b8c4454sm18295706a12.3.2026.01.12.08.53.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jan 2026 08:53:34 -0800 (PST) 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: 3c0795ee-efd7-11f0-b15e-2bf370ae4941 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768236815; x=1768841615; darn=lists.xenproject.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TFrzOfuWuR3wvKFK6Eo3qR7ND40QowhwHk3UwhZm65o=; b=i1xrYZUn6ajImJhWi6D7I4WE+RRRSYJ+BOUyZ8L7d06aZgkV10xRaoGMg6F+wBhaqf MFeYaaXJJW2RHFBSe0an7RPiRKSImIskbeaPQZ86QKZZM4q5PX/FH2lcXCs27Tnu5/ew q/WsRw7zrX5CNtG1I0ptFyn2m/0BcIScACXbRg1G5YMUzUZcE/e2TvC9UhntSRDhWbZQ XIW3ZM3IJTQzwipQXUHXR16v3ShyDuQO0x0xlgTF0I9IhpljykeyrAJSFjl5qVekUGn+ nWTnBiQgVmFjtdEz0kKWrldqM/w3aR2hDWl2I1tC+7jUzmPuL568RGEOiYGb7Il8CExf s7hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768236815; x=1768841615; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TFrzOfuWuR3wvKFK6Eo3qR7ND40QowhwHk3UwhZm65o=; b=RlXqqYugmGdFsjb5MOYqAWfD3YWsoVoLMWJp02A0q5j8fS1Q53WttREomuDafBy5Yl IIfXL7tIK56tjuS/payKBW74E8P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hHEQWuEEELGY378zBqu8v3buCpmQ8W8m38rA== X-Received: by 2002:a05:6402:42c7:b0:64d:498b:aeec with SMTP id 4fb4d7f45d1cf-65097df8139mr18519113a12.12.1768236814639; Mon, 12 Jan 2026 08:53:34 -0800 (PST) Message-ID: <94c0cd09-7aaa-4ae1-913e-57d883916682@gmail.com> Date: Mon, 12 Jan 2026 17:53:33 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 05/15] xen/riscv: implement stub for smp_send_event_check_mask() To: Jan Beulich Cc: Alistair Francis , Bob Eshleman , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , xen-devel@lists.xenproject.org References: <837c863f5995cc4371e82b481211b053656ec7e7.1766595589.git.oleksii.kurochko@gmail.com> <319e6162-7a5b-4030-ae9f-a86a48e73605@suse.com> Content-Language: en-US From: Oleksii Kurochko In-Reply-To: <319e6162-7a5b-4030-ae9f-a86a48e73605@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/7/26 4:47 PM, Jan Beulich wrote: > On 24.12.2025 18:03, Oleksii Kurochko wrote: >> --- a/xen/arch/riscv/smp.c >> +++ b/xen/arch/riscv/smp.c >> @@ -1,3 +1,4 @@ >> +#include >> #include >> >> /* >> @@ -13,3 +14,10 @@ >> struct pcpu_info pcpu_info[NR_CPUS] = { [0 ... NR_CPUS - 1] = { >> .processor_id = NR_CPUS, >> }}; >> + >> +void smp_send_event_check_mask(const cpumask_t *mask) >> +{ >> +#if CONFIG_NR_CPUS > 1 >> +# error "smp_send_event_check_mask() unimplemented" >> +#endif >> +} > CONFIG_NR_CPUS is 64 by default for 64-bit arch-es, from all I can tell, also > for RISC-V. And there's no "override" in riscv64_defconfig. How is the above > going to work in CI? Then again I must be overlooking something, as the config > used in CI has CONFIG_NR_CPUS=1. Just that I can't tell why that is. It is 1 because of the defintion of NR_CPUS in KConfig: config NR_CPUS int "Maximum number of CPUs" range 1 1 if ARM && MPU range 1 16383 .... ( all other range props are condtional and there is no RISC-V in dependency) so for RISC-V "range 1 16383" used and CONFIG_NR_CPUS is set to the minimal of this range, so it is 1. > > And no, I'm not meaning to ask that you override NR_CPUS (and wherever such an > override would live, I think it would better be dropped rather sooner than > later). Instead an option may be this: > > void smp_send_event_check_mask(const cpumask_t *mask) > { > #if CONFIG_NR_CPUS > 1 > BUG_ON(!cpumask_subset(mask, cpumask_of(0))); > #endif > } > > (I can't tell off the top of my head whether an empty mask may be passed to this > function. If not, cpumask_equal() could be used as well.) I will double-check. Thanks for such hint. > > Of course the #if may then not be necessary at all, and a TODO comment may want > putting there instead. With suggested above approach, I think it isn't really needed to use #if. Thanks! ~ Oleksii