Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 303D7606A322 for ; Thu, 3 Dec 2026 08:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=xdPD8ANx Received: from list by lists.xenproject.org with outflank-mailman.1511885.1704237 (Exim 4.92) (envelope-from ) id 1xZ2aZ-000879-8Q; Thu, 03 Dec 2026 08:54:51 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 1511885.1704237; Thu, 03 Dec 2026 08:54:51 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1xZ2aZ-000872-4K; Thu, 03 Dec 2026 08:54:51 +0000 Received: by outflank-mailman (input) for mailman id 1511885; Thu, 03 Dec 2026 08:54:49 +0000 Received: from mx.expurgate.net ([195.190.135.10]) by lists.xenproject.org with esmtp (Exim 4.92) id 1xZ2aX-00086w-5L for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 08:54:49 +0000 Received: from mx.expurgate.net (helo=localhost) by mx.expurgate.net with esmtp id 1xZ2aW-00D73l-GP for xen-devel@lists.xenproject.org; Thu, 03 Dec 2026 09:54:48 +0100 Received: from [10.42.69.7] (helo=localhost) by localhost with ESMTP (eXpurgate MTA 0.9.1) (envelope-from ) id 6b112e56-8faa-0a2a0a5109dd-0a2a4507d078-8 for ; Thu, 03 Dec 2026 09:54:48 +0100 Received: from [209.85.128.44] (helo=mail-wm1-f44.google.com) by tlsNG-ef75cf.mxtls.expurgate.net with ESMTPS (eXpurgate 4.57.1) (envelope-from ) id 6b112e58-b4ea-0a2a45070019-d155802ca5d3-3 for ; Thu, 03 Dec 2026 09:54:48 +0100 Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4a9a8d6cea8so8105765e9.1 for ; Thu, 03 Dec 2026 00:54:48 -0800 (PST) Received: from [192.168.1.6] (user-109-243-65-71.play-internet.pl. [109.243.65.71]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4ab6a680355sm68903841f8f.27.2026.12.03.00.54.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 03 Dec 2026 00:54:47 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Post: List-Help: List-Subscribe: , Precedence: list Sender: "Xen-devel" Authentication-Results: eu.smtp.expurgate.cloud; dkim=pass header.s=20260707 header.d=gmail.com header.i="@gmail.com" header.h="Content-Transfer-Encoding:Content-Type:In-Reply-To:From:Content-Language:References:Cc:To:Subject:User-Agent:MIME-Version:Date:Message-ID" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796288088; x=1796892888; darn=lists.xenproject.org; h=content-transfer-encoding:content-type: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 :content-type; bh=ScednEKkUEJ8fReHrSjQcWsGdi9gjzzAgP61TyKYRTI=; b=xdPD8ANxdea1QFAbbZF71ZRNwVcz778oHLKgWlGY6OJmJmrATaURDFuscvLTsVt8Lj HTx/ulO1ffTBwhZHw+ZcJy1kakE5KCfLcz7zQl8Ju16/271qteVz2zdUor1N9HFJjKK8 m8zTzGASTAk80fN+9Gl4p7XaRGK4WVdTG/ILIg9mSxO8zQIhVwaAlWWRGN1wdUEPmEY8 9vs8qk1EfBm8TQeWjGEQVv/uONIDNPtu3mO+g9HF+oenvkd3CmBOQUnB6DlJKMp+mTap HybCwX1gB0SrR6reGXvGRfuOnkhGapn0r+Qjn/MoeYaCRLUzvmeSqp015rMxB7fmggSx 6ReA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796288088; x=1796892888; h=content-transfer-encoding:content-type: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:content-type; bh=ScednEKkUEJ8fReHrSjQcWsGdi9gjzzAgP61TyKYRTI=; b=NwFGOYzAz2+0Rjkbu5wqIdTBEtt9WOl+vRsMyt+ZB3cjVmwLOQiSOOb2WmtWqQcbqT 4/vLZ7z+0eOTfiTIBxaKxFDgoXeExDfrFP129My5XzLiqy08o5jzotBZU6n3XGGDy9fv r1ONIOiNDsnR/RJ6jIaaoWNZAUK9MAPoH4Sdvvur1/83186Q9TEAw7NkIRPdTSfzYUWg 9D4CCysHeacO7dCDTjVLgg8YZdl2zuf+QkFXAmXnhioj91WGipvqSCw8uVtzPsV2cN/e nd/MmP9GP4vzLuN0Ik8vS6d+GSsDhJPaa/u7LRX++49mLpohNcOESvJbomXaCf/fHxEM hgCA== X-Forwarded-Encrypted: i=1; AL+hErEMWK2E6p6D3HQk7dKnwIVXIV1s2MUeRNmSxdpkUPsEDe07a/h559gLfMF1xnuXNt4WSkoGpcHSPrA=@lists.xenproject.org X-Gm-Message-State: APuU4Z93TmU9DR+PGPP0Drzx1rFk2uyN4BVJz+kq98UyeOWTq0crz71V CPOcK1XxPm0jOoIxgwsBrQ8bS4FHUzJAVL5J5A6+vkkg4Kmaco7JBS+8 X-Gm-Gg: AZFdTZdpqECRenCgkLKDyxytRHDc6FiW6ZPFK1m8nOlf+AkzT/mKC9GS+sFKuODhhj7 NJqAJzHqVPNsX4ETKVyLDKmYCrEmKaOezLK96Zc/CWS+KhH5SgIFjYT4VZXeEhNWoYsTFfc0ErI KHHTr96ZufxyoDsge6iIcwRVuYrzbrvlCD0DWIoZNdF8rmKRYL86F22qNtxQdVV7NOshYISjYxv 1DimGiNDFw9ZgxEcxWd1mHXALJERVZMjiFJUOKwyYYLJUX/RHXqrg7SK70gCt81YL/MEzQPUiVB uC0AeFXIjeoZ41D7y+wPB6b4aMDEqi/Q6h3BUpxbfyPTR77Dk36hoi3L3q+tUXimxk1bvJ7M2d/ h219cj49aiiaq8NFXy+YelKEXWM/xNlqRCGnWg5G43WvyFVrZNaqh1R6Q025BAsuN5ca+lFU+4o zs7TXe2i6uVhRbs6Om3/7xh1fyayWh97rOaq6rlt+hntjeCy13oy2eVXHPokKzjoi83/YRTbR7I esJsjr1gVne4z1/hFgT6uvoJ5rdSwgHp7vd4HPlvrIM4iLQG6cGBKJzyfAFmUWBs4Dg7KdBOFGn JYJnTq4+4fcG+tYDieNTQghLN68sddeRNGzfn/z7TSsHE1SUqzuU1OMUQDLdc5fU4J4cv/FDMbO 6rdxRGXHznzlsLeO0rUAsbQ== X-Received: by 2002:a05:600c:c09a:b0:4b9:f90b:1c4d with SMTP id 5b1f17b1804b1-4bbe19bb032mr19824805e9.5.1796288087578; Thu, 03 Dec 2026 00:54:47 -0800 (PST) Message-ID: <0fb24d4c-7623-42c8-a49d-b6e1bc435399@gmail.com> Date: Thu, 3 Dec 2026 09:54:46 +0100 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] xen/riscv: support riscv,isa-extensions devicetree property To: Cristian Andrei , xen-devel@lists.xenproject.org Cc: Community Manager , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?Q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Alistair Francis , Baptiste Le Duc , Connor Davis , Denis Mukhin References: <20261202133827.11115-1-cristian.andrei1423@gmail.com> Content-Language: en-US From: Oleksii Kurochko In-Reply-To: <20261202133827.11115-1-cristian.andrei1423@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-purgate-ID: tlsNG-ef75cf/1796288088-372DCAE4-50F50E4E/10/73395122804 X-purgate-type: spam X-purgate-size: 15270 X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 12/2/26 2:38 PM, Cristian Andrei wrote: > Xen only parses the riscv,isa devicetree property, which Linux has > deprecated in favour of riscv,isa-base plus riscv,isa-extensions [1]. > Xen panics if no CPU node has riscv,isa, so a devicetree using only > the new properties cannot boot Xen. > > Use riscv,isa-extensions when present, falling back to the legacy > riscv,isa otherwise. With the new binding, riscv,isa-extensions and > riscv,isa-base must both be present, and riscv,isa-base must match the > base ISA Xen is built for ("rv64i" or "rv32i"). I understand why you panic in this case, as both properties should be present according to the bindings. However, can't we make the behavior a bit more lenient and avoid panicking in this case? Perhaps we could fall back to riscv,isa if it is present. > Add a shared helper, > riscv_isa_ext_probe(), so that cpufeature.c and smpboot.c agree on > which property a CPU uses. > > Currently, a CPU with neither property is skipped with a message. > Make this an error instead, as a skipped CPU is left out of the ISA > intersection and Xen could then use extensions that CPU lacks. > > CPU nodes for which dt_get_cpuid_from_node() fails, i.e. without a > valid reg property, are still skipped: without a hart ID, Xen can > never start that hart and it never runs Xen code, so leaving it out of > the ISA intersection is harmless. The exception is the boot hart, > which is already running Xen; that case isn't detected yet. Add a > comment explaining this and a debug message when such a node is > skipped. > > Add a per-CPU fallback so that any mix of new and legacy CPUs works. > This deviates from Linux, which skips CPUs without riscv,isa-extensions > and could assume extensions those CPUs lack. > > Track the first CPU with a flag instead of testing whether the > intersection is empty: with riscv,isa-extensions a CPU's set can be > empty, which would make a later CPU look like the first one. This > can't happen with the legacy riscv,isa, where 'i' is always set. > > dt_processor_hartid(), used during interrupt-controller setup, also > only reads riscv,isa. Make it use the new property too, with the same > legacy fallback. > > [1] Linux commit aeb71e42caae ("dt-bindings: riscv: deprecate riscv,isa") > > Suggested-by: Oleksii Kurochko > Signed-off-by: Cristian Andrei > --- > Changes in v2: > - Reword the commit message: describe the current behaviour first and > cite the Linux deprecation of riscv,isa (Oleksii, Baptiste). > - Suggested-by: Oleksii, who suggested the task (Denis). > - Rename riscv_isa_ext_check() to riscv_isa_ext_probe() (Baptiste). > - Document the return values of riscv_isa_ext_probe() (Oleksii). > - riscv_isa_ext_probe(): use early returns, look up the node name only > for error messages, add XENLOG_ERR to its messages (Oleksii). > - Keep the original "riscv,isa must be lowercase" panic message > (Oleksii). > - Use switch ( ret ) in riscv_fill_hwcap_from_dt() and read riscv,isa > in the -ENOENT case (Oleksii). > - Don't split the "Unable to find" format string (Baptiste). > - Drop the parentheses around isa[i] != '\0' (Baptiste). > - Reword the final panic message (Oleksii). > - Fix "no any guarantee" in the SSTC comment (Baptiste). > - dt_processor_hartid(): drop the goto label and the XENLOG_DEBUG > fallback message (Oleksii). > - dt_processor_hartid(): add XENLOG_ERR to its messages and don't split > the format strings (Baptiste). > - Sort the includes in smpboot.c (Baptiste). > - booting.txt: say that riscv,isa-extensions takes precedence over > riscv,isa when both are present (Oleksii). > - Explain in a comment why CPU nodes without a hart ID are still > skipped, and print a debug message when one is (Oleksii, Denis). > - Drop Denis's Reviewed-by, as the patch changed significantly. I think that geneally it isn't really needed to write whom comment you resolved. IMO, it is more then enough just to mention what was changed. > > Tested on QEMU (virt, aia=aplic-imsic, -cpu rv64,svpbmt=on), debug > build: > - QEMU's own DT, 1 and 2 CPUs: boots > - only riscv,isa-extensions, 1 and 2 CPUs: boots > - only the legacy riscv,isa, 2 CPUs: boots > - mixed (CPU 0 new, CPU 1 legacy), 2 CPUs: boots > - CPU 1 with riscv,isa-base "rv32i": panics with the reason, as > expected > - CPU 1 with only one of riscv,isa-extensions and riscv,isa-base > (each way): panics with the reason, as expected > - CPU node without reg: cannot be tested in QEMU, as OpenSBI stops > before Xen starts > > CHANGELOG.md | 3 + > docs/misc/riscv/booting.txt | 4 +- > xen/arch/riscv/cpufeature.c | 155 +++++++++++++++--------- > xen/arch/riscv/include/asm/cpufeature.h | 2 + > xen/arch/riscv/smpboot.c | 23 +++- > 5 files changed, 129 insertions(+), 58 deletions(-) > > diff --git a/CHANGELOG.md b/CHANGELOG.md > index f967437eda..a46a2584af 100644 > --- a/CHANGELOG.md > +++ b/CHANGELOG.md > @@ -17,6 +17,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) > afterwards. > > ### Added > + - On RISC-V: > + - Support for riscv,isa-extensions devicetree cpu property, alongside > + the legacy riscv,isa. > > ### Removed > - On Arm: > diff --git a/docs/misc/riscv/booting.txt b/docs/misc/riscv/booting.txt > index 14212ed62f..3491080578 100644 > --- a/docs/misc/riscv/booting.txt > +++ b/docs/misc/riscv/booting.txt > @@ -2,7 +2,9 @@ System requirements > =================== > > The following extensions are required by Xen. Xen panics at boot if any of > -them is missing from the riscv,isa property of the CPU nodes: > +them is missing from the riscv,isa or riscv,isa-extensions property of the > +CPU nodes, with the riscv,isa-extensions and riscv,isa-base pair taking > +precedence over the legacy riscv,isa when both are present: > - I, M, A, Zicsr, Zifencei: > Base ISA Xen is compiled for. > - C: > diff --git a/xen/arch/riscv/cpufeature.c b/xen/arch/riscv/cpufeature.c > index b1c614867c..54aff9eac4 100644 > --- a/xen/arch/riscv/cpufeature.c > +++ b/xen/arch/riscv/cpufeature.c > @@ -42,10 +42,11 @@ struct riscv_isa_ext_data { > * > * These flags express Xen's policy, not the ISA's rules: extensions which > * are architecturally tied to one XLEN (Zilsd on RV32, say) need no special > - * treatment here, as they can only ever appear in the "riscv,isa" of a host > - * of that XLEN, and guest_isa is masked against the host ISA bitmap anyway. > - * They are only of use for extensions Xen chooses not to expose to guests of > - * a given width despite the hardware implementing them. > + * treatment here, as they can only ever appear in the "riscv,isa" or > + * "riscv,isa-extensions" of a host of that XLEN, and guest_isa is masked > + * against the host ISA bitmap anyway. They are only of use for extensions > + * Xen chooses not to expose to guests of a given width despite the hardware > + * implementing them. > */ > #define RISCV_ISA_EXT_GUEST_NONE 0 > #define RISCV_ISA_EXT_GUEST_RV32 (1U << 0) > @@ -455,10 +456,47 @@ static int __init riscv_isa_parse_string(const char *isa, > return -EINVAL; > } > > -static void __init riscv_fill_hwcap_from_isa_string(void) > +/* > + * Checks the state of the riscv,isa-extensions / riscv,isa-base properties > + * in the DT. > + * 0: use riscv,isa-extensions; > + * -ENOENT: new binding absent, use legacy riscv,isa; > + * -EINVAL: if only one of the pair is present or if riscv,isa-base doesn't > + * match the build > + */ > +int riscv_isa_ext_probe(const struct dt_device_node *cpu) I think this function should be __init as it I expect it will be used only on boot time. > +{ > + const char *base; > + const char *expected_base = IS_ENABLED(CONFIG_RISCV_64) ? "rv64i" : "rv32i"; > + bool isa_ext_exists = dt_property_read_bool(cpu, "riscv,isa-extensions"); > + bool isa_base_exists = !dt_property_read_string(cpu, "riscv,isa-base", > + &base); > + > + if ( !isa_ext_exists && !isa_base_exists ) > + return -ENOENT; > + > + if ( !isa_ext_exists || !isa_base_exists ) > + { > + printk(XENLOG_ERR "%s: need both riscv,isa-extensions and riscv,isa-base\n", > + dt_node_full_name(cpu)); > + return -EINVAL; > + } > + > + if ( strcmp(base, expected_base) ) > + { > + printk(XENLOG_ERR "%s: riscv,isa-base \"%s\" doesn't match %s\n", > + dt_node_full_name(cpu), base, expected_base); > + return -EINVAL; > + } > + > + return 0; > +} > + > +static void __init riscv_fill_hwcap_from_dt(void) > { > const struct dt_device_node *cpus = dt_find_node_by_path("/cpus"); > const struct dt_device_node *cpu; > + bool first_cpu = true; > > if ( !cpus ) > { > @@ -471,6 +509,7 @@ static void __init riscv_fill_hwcap_from_isa_string(void) > DECLARE_BITMAP(this_isa, RISCV_ISA_EXT_MAX); > const char *isa; > unsigned long cpuid; > + int ret; > > bitmap_zero(this_isa, RISCV_ISA_EXT_MAX); > > @@ -480,58 +519,67 @@ static void __init riscv_fill_hwcap_from_isa_string(void) > if ( !dt_device_is_available(cpu) ) > continue; > > + /* > + * Without a valid reg property there is no hart ID, so Xen can never > + * start this hart and it never runs Xen code. Leaving it out of the > + * ISA intersection is therefore harmless. The exception is the boot > + * hart, which is already running Xen. That case isn't detected yet. > + */ > if ( dt_get_cpuid_from_node(cpu, &cpuid) < 0 ) > - continue; > - > - if ( dt_property_read_string(cpu, "riscv,isa", &isa) ) > { > - printk("Unable to find \"riscv,isa\" devicetree entry " > - "for DT's cpu%ld node\n", cpuid); > + printk(XENLOG_DEBUG "%s: no hart ID, skipping this CPU node\n", > + dt_node_full_name(cpu)); > continue; > } > > - for ( unsigned int i = 0; (isa[i] != '\0'); i++ ) > - if ( !isdigit(isa[i]) && (isa[i] != '_') && !islower(isa[i]) ) > - panic("According to DT binding riscv,isa must be lowercase\n"); > - > - if ( riscv_isa_parse_string(isa, this_isa) ) > - panic("Check riscv,isa in dts file\n"); > - > - if ( bitmap_empty(riscv_isa, RISCV_ISA_EXT_MAX) ) > - bitmap_copy(riscv_isa, this_isa, RISCV_ISA_EXT_MAX); > - else > - bitmap_and(riscv_isa, riscv_isa, this_isa, RISCV_ISA_EXT_MAX); > - } > -} > + ret = riscv_isa_ext_probe(cpu); > > -static bool __init has_isa_extensions_property(void) > -{ > - const struct dt_device_node *cpus = dt_find_node_by_path("/cpus"); > - const struct dt_device_node *cpu; > + /* Try riscv,isa-extensions, fall back to the deprecated riscv,isa */ > + switch ( ret ) > + { > + case 0: > + for ( unsigned int i = 0; i < ARRAY_SIZE(riscv_isa_ext); i++ ) > + if ( dt_property_match_string(cpu, "riscv,isa-extensions", > + riscv_isa_ext[i].name) >= 0 ) > + __set_bit(riscv_isa_ext[i].id, this_isa); > + break; > > - if ( !cpus ) > - { > - printk("Missing /cpus node in the device tree?\n"); > - return false; > - } > + case -ENOENT: > + if ( dt_property_read_string(cpu, "riscv,isa", &isa) ) > + panic("Unable to find \"riscv,isa\" or \"riscv,isa-extensions\" devicetree entry for DT's cpu%lu node\n", > + cpuid); > > - dt_for_each_child_node(cpus, cpu) > - { > - const char *isa; > + for ( unsigned int i = 0; isa[i] != '\0'; i++ ) > + if ( !isdigit(isa[i]) && (isa[i] != '_') && !islower(isa[i]) ) > + panic("According to DT binding riscv,isa must be lowercase\n"); > > - if ( !dt_device_type_is_equal(cpu, "cpu") ) > - continue; > + if ( riscv_isa_parse_string(isa, this_isa) ) > + panic("cpu%lu: riscv,isa failed to parse \"%s\"\n", > + cpuid, isa); > > - if ( !dt_device_is_available(cpu) ) > - continue; > + break; Please add a blank line before "case -EINVAL:", as you do between the other cases. > + case -EINVAL: > + panic("cpu%lu: invalid riscv,isa-base/riscv,isa-extensions\n", > + cpuid); riscv_isa_ext_probe() and the new "no hart ID" message already use dt_node_full_name(cpu), so I'd use the node name in these messages too for consistency. For -EINVAL, riscv_isa_ext_probe() has already printed the exact reason, so the panic() message can be shorter, e.g. just the node name. > + break; I am okay to have break here but it looks like it is uncreachable because of panic(). [...] > diff --git a/xen/arch/riscv/smpboot.c b/xen/arch/riscv/smpboot.c > index 3b8bf98e20..35f706b940 100644 > --- a/xen/arch/riscv/smpboot.c > +++ b/xen/arch/riscv/smpboot.c > @@ -6,6 +6,7 @@ > #include > #include > > +#include > #include > > cpumask_t __read_mostly cpu_online_map; > @@ -77,9 +78,29 @@ int dt_processor_hartid(const struct dt_device_node *node, > return -ENODEV; > } > > + ret = riscv_isa_ext_probe(node); > + if ( ret != -ENOENT ) > + { > + if ( ret ) > + return -ENODEV; > + > + if ( dt_property_match_string(node, "riscv,isa-extensions", "i") < 0 || > + dt_property_match_string(node, "riscv,isa-extensions", "m") < 0 || > + dt_property_match_string(node, "riscv,isa-extensions", "a") < 0 ) > + { > + printk(XENLOG_ERR "CPU with hartid=%#lx does not support ima\n", > + *hartid); > + return -ENODEV; > + } > + > + return 0; > + } > + > + /* Fall back to legacy riscv,isa property */ > if ( (ret = dt_property_read_string(node, "riscv,isa", &isa)) ) > { > - printk("CPU with hartid=%#lx has no \"riscv,isa\" property\n", *hartid); > + printk(XENLOG_ERR "CPU with hartid=%#lx has no \"riscv,isa-base\" or \"riscv,isa\" property\n", > + *hartid); We only get here with -ENOENT, i.e. when both riscv,isa-extensions and riscv,isa-base are missing. So I'd say something like: "... has neither riscv,isa-extensions/riscv,isa-base nor riscv,isa" > return ret; > } > ~ Oleksii