From: Jan Beulich <jbeulich@suse.com>
To: Oleksii Kurochko <oleksii.kurochko@gmail.com>
Cc: "Romain Caritey" <Romain.Caritey@microchip.com>,
"Baptiste Le Duc" <baptiste.le-duc@vates.tech>,
"Alistair Francis" <alistair.francis@wdc.com>,
"Connor Davis" <connojdavis@gmail.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Julien Grall" <julien@xen.org>,
"Roger Pau Monné" <roger@xenproject.org>,
"Stefano Stabellini" <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v7 04/20] xen/riscv: introduce guest riscv,isa string
Date: Thu, 13 Aug 2026 17:35:45 +0200 [thread overview]
Message-ID: <450b45d6-bb22-44e5-816a-4a22243fa175@suse.com> (raw)
In-Reply-To: <59b5b69f53ef81d68fd279d9ee0c03f5ffbbc2ae.1785836421.git.oleksii.kurochko@gmail.com>
On 04.08.2026 17:47, Oleksii Kurochko wrote:
> @@ -34,9 +36,35 @@ struct riscv_isa_ext_data {
> .name = #ext_name, \
> }
>
> +struct riscv_isa_ext_entry {
> + unsigned int id;
> + const char *name;
> + bool guest_supported;
> +};
> +
> +#define RISCV_ISA_EXT_ENTRY(ext_name, guest_supp) \
> +{ \
> + .id = RISCV_ISA_EXT_ ## ext_name, \
> + .name = #ext_name, \
> + .guest_supported = guest_supp, \
> +}
> +
> /* Host ISA bitmap */
> static __ro_after_init DECLARE_BITMAP(riscv_isa, RISCV_ISA_EXT_MAX);
>
> +/*
> + * ISA bitmap handed out to every guest.
> + *
> + * All guests are given the same extensions for the time being, so this is
> + * computed once out of riscv_isa_ext[] and riscv_isa, rather than redoing
> + * the walk for every domain created. Should per-domain ISA policy ever be
> + * introduced, this will need to become per-domain again.
> + */
> +static __ro_after_init DECLARE_BITMAP(guest_isa, RISCV_ISA_EXT_MAX);
> +
> +/* "riscv,isa" string corresponding to guest_isa, shared by all domains. */
> +static char *__ro_after_init guest_isa_str;
This would better be pointer-to-const, as nothing should alter the string
anymore once it was built. Then:
Acked-by: Jan Beulich <jbeulich@suse.com>
Jan
next prev parent reply other threads:[~2026-08-13 15:36 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 15:47 [PATCH v7 00/20] Introduce enablemenant of dom0less Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 01/20] xen: introduce CONFIG_HAS_SHARED_INFO for archs without a shared page Oleksii Kurochko
2026-08-13 14:54 ` Jan Beulich
2026-08-13 17:03 ` Oleksii Kurochko
2026-08-14 7:37 ` Jan Beulich
2026-08-04 15:47 ` [PATCH v7 02/20] xen/dom0less: turn max_init_domid into a common variable Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 03/20] xen/riscv: Implement construct_domain() Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 04/20] xen/riscv: introduce guest riscv,isa string Oleksii Kurochko
2026-08-13 7:19 ` Jan Beulich
2026-08-13 15:37 ` Oleksii Kurochko
2026-08-13 15:43 ` Jan Beulich
2026-08-13 16:00 ` Oleksii Kurochko
2026-08-13 15:35 ` Jan Beulich [this message]
2026-08-04 15:47 ` [PATCH v7 05/20] xen/riscv: implement make_cpus_node() Oleksii Kurochko
2026-08-13 15:37 ` Jan Beulich
2026-08-04 15:47 ` [PATCH v7 06/20] xen/riscv: implement make_timer_node() Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 07/20] xen/riscv: implement make_arch_nodes() Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 08/20] xen/riscv: introduce init interrupt controller operations Oleksii Kurochko
2026-08-04 15:47 ` [PATCH v7 09/20] xen/riscv: implement make_intc_domU_node() Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 10/20] xen/riscv: introduce aia_init() and aia_usable() Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 11/20] xen/riscv: introduce per-vCPU IMSIC state Oleksii Kurochko
2026-08-13 15:39 ` Oleksii Kurochko
2026-08-13 15:45 ` Jan Beulich
2026-08-04 15:48 ` [PATCH v7 12/20] xen/riscv: introduce minimal virtual APLIC (vAPLIC) infrastructure Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 13/20] xen/riscv: introduce (de)initialization helpers for vINTC Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 14/20] xen/riscv: generate IMSIC DT node for guest domains Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 15/20] xen/riscv: create APLIC " Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 16/20] xen/riscv: implement IRQ routing for device passthrough Oleksii Kurochko
2026-08-18 10:18 ` Jan Beulich
2026-08-25 16:06 ` Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 17/20] xen/riscv: implement init_intc_phandle() Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 18/20] xen/riscv: initialize RCU, scheduler, and system domains in start_xen() Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 19/20] xen/riscv: provide init_vuart() Oleksii Kurochko
2026-08-04 15:48 ` [PATCH v7 20/20] xen/riscv: add initial dom0less infrastructure support Oleksii Kurochko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=450b45d6-bb22-44e5-816a-4a22243fa175@suse.com \
--to=jbeulich@suse.com \
--cc=Romain.Caritey@microchip.com \
--cc=alistair.francis@wdc.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=baptiste.le-duc@vates.tech \
--cc=connojdavis@gmail.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=oleksii.kurochko@gmail.com \
--cc=roger@xenproject.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.