From: Oleksandr <olekstysh@gmail.com>
To: Oleksii Moisieiev <Oleksii_Moisieiev@epam.com>
Cc: "xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Wei Liu <wl@xen.org>, Anthony PERARD <anthony.perard@citrix.com>,
Juergen Gross <jgross@suse.com>
Subject: Re: [RFC v1 4/5] tools/arm: add "scmi_smc" option to xl.cfg
Date: Wed, 15 Dec 2021 23:51:01 +0200 [thread overview]
Message-ID: <eaed4dac-219f-39ae-7237-0ae67c77869a@gmail.com> (raw)
In-Reply-To: <7aa3e21a3285b3af92ad87a4b039b4bd7696ac88.1639472078.git.oleksii_moisieiev@epam.com>
On 14.12.21 11:34, Oleksii Moisieiev wrote:
Hi Oleksii
> This enumeration sets SCI type for the domain. Currently there is
> two possible options: either 'none' or 'scmi_smc'.
>
> 'none' is the default value and it disables SCI support at all.
>
> 'scmi_smc' enables access to the Firmware from the domains using SCMI
> protocol and SMC as transport.
>
> Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@epam.com>
> ---
> docs/man/xl.cfg.5.pod.in | 22 ++++++++++++++++++++++
> tools/include/libxl.h | 5 +++++
> tools/libs/light/libxl_types.idl | 6 ++++++
> tools/xl/xl_parse.c | 9 +++++++++
> 4 files changed, 42 insertions(+)
>
> diff --git a/docs/man/xl.cfg.5.pod.in b/docs/man/xl.cfg.5.pod.in
> index b98d161398..92d0593875 100644
> --- a/docs/man/xl.cfg.5.pod.in
> +++ b/docs/man/xl.cfg.5.pod.in
> @@ -1614,6 +1614,28 @@ This feature is a B<technology preview>.
>
> =back
>
> +=item B<sci="STRING">
> +
> +B<Arm only> Set SCI type for the guest. SCI is System Control Protocol -
> +allows domain to manage various functions that are provided by HW platform.
> +
> +=over 4
> +
> +=item B<none>
> +
> +Don't allow guest to use SCI if present on the platform. This is the default
> +value.
> +
> +=item B<scmi_smc>
> +
> +Enables SCMI-SMC support for the guest. SCMI is System Control Management
> +Inferface - allows domain to manage various functions that are provided by HW
> +platform, such as clocks, resets and power-domains. Xen will mediate access to
> +clocks, power-domains and resets between Domains and ATF. Disabled by default.
> +SMC is used as transport.
> +
> +=back
> +
> =back
>
> =head2 Paravirtualised (PV) Guest Specific Options
> diff --git a/tools/include/libxl.h b/tools/include/libxl.h
> index 2bbbd21f0b..30e5aee119 100644
> --- a/tools/include/libxl.h
> +++ b/tools/include/libxl.h
> @@ -278,6 +278,11 @@
> */
> #define LIBXL_HAVE_BUILDINFO_ARCH_ARM_TEE 1
>
> +/*
> + * libxl_domain_build_info has the arch_arm.sci field.
> + */
> +#define LIBXL_HAVE_BUILDINFO_ARCH_ARM_SCI 1
> +
> /*
> * LIBXL_HAVE_SOFT_RESET indicates that libxl supports performing
> * 'soft reset' for domains and there is 'soft_reset' shutdown reason
> diff --git a/tools/libs/light/libxl_types.idl b/tools/libs/light/libxl_types.idl
> index 2a42da2f7d..9067b509f4 100644
> --- a/tools/libs/light/libxl_types.idl
> +++ b/tools/libs/light/libxl_types.idl
I assume that at least goland bindings want updating.
> @@ -480,6 +480,11 @@ libxl_tee_type = Enumeration("tee_type", [
> (1, "optee")
> ], init_val = "LIBXL_TEE_TYPE_NONE")
>
> +libxl_sci_type = Enumeration("sci_type", [
> + (0, "none"),
> + (1, "scmi_smc")
> + ], init_val = "LIBXL_SCI_TYPE_NONE")
> +
> libxl_rdm_reserve = Struct("rdm_reserve", [
> ("strategy", libxl_rdm_reserve_strategy),
> ("policy", libxl_rdm_reserve_policy),
> @@ -564,6 +569,7 @@ libxl_domain_build_info = Struct("domain_build_info",[
> ("apic", libxl_defbool),
> ("dm_restrict", libxl_defbool),
> ("tee", libxl_tee_type),
> + ("sci", libxl_sci_type),
> ("u", KeyedUnion(None, libxl_domain_type, "type",
> [("hvm", Struct(None, [("firmware", string),
> ("bios", libxl_bios_type),
> diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c
> index 117fcdcb2b..c37bf6298b 100644
> --- a/tools/xl/xl_parse.c
> +++ b/tools/xl/xl_parse.c
> @@ -2747,6 +2747,15 @@ skip_usbdev:
> }
> }
>
> + if (!xlu_cfg_get_string (config, "sci", &buf, 1)) {
> + e = libxl_sci_type_from_string(buf, &b_info->sci);
> + if (e) {
> + fprintf(stderr,
> + "Unknown sci \"%s\" specified\n", buf);
> + exit(-ERROR_FAIL);
> + }
> + }
> +
> parse_vkb_list(config, d_config);
>
> xlu_cfg_get_defbool(config, "xend_suspend_evtchn_compat",
--
Regards,
Oleksandr Tyshchenko
next prev parent reply other threads:[~2021-12-15 21:51 UTC|newest]
Thread overview: 95+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-14 9:34 [RFC v1 0/5] Introduce SCI-mediator feature Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 1/5] xen/arm: add support for Renesas R-Car Gen3 platform Oleksii Moisieiev
2021-12-15 6:38 ` Oleksandr Andrushchenko
2021-12-15 20:08 ` Oleksii Moisieiev
2021-12-15 9:39 ` Julien Grall
2021-12-17 10:48 ` Oleksii Moisieiev
2021-12-15 9:57 ` Oleksandr Tyshchenko
2021-12-17 10:52 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 2/5] xen/arm: add generic SCI mediator framework Oleksii Moisieiev
2021-12-17 2:45 ` Stefano Stabellini
2021-12-17 12:50 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 3/5] xen/arm: introduce SCMI-SMC mediator driver Oleksii Moisieiev
2021-12-17 11:35 ` Oleksandr
2021-12-17 13:23 ` Oleksii Moisieiev
2021-12-17 13:37 ` Julien Grall
2021-12-17 13:58 ` Oleksii Moisieiev
2021-12-17 16:38 ` Julien Grall
2021-12-20 15:41 ` Oleksii Moisieiev
2021-12-24 14:42 ` Julien Grall
2021-12-24 17:02 ` Oleksii Moisieiev
2022-01-03 13:14 ` Julien Grall
2022-01-06 13:53 ` Oleksii Moisieiev
2022-01-06 14:02 ` Julien Grall
2022-01-06 15:43 ` Oleksii Moisieiev
2022-01-06 16:04 ` Julien Grall
2022-01-06 16:28 ` Oleksii Moisieiev
2022-01-19 10:37 ` Oleksii Moisieiev
2022-01-20 2:10 ` Stefano Stabellini
2022-01-20 10:25 ` Oleksii Moisieiev
2021-12-18 2:14 ` Stefano Stabellini
2021-12-20 18:12 ` Oleksii Moisieiev
2021-12-21 0:52 ` Stefano Stabellini
2021-12-21 20:03 ` Oleksii Moisieiev
2021-12-21 21:22 ` Stefano Stabellini
2021-12-22 11:04 ` Oleksii Moisieiev
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 18:45 ` Volodymyr Babchuk
2021-12-23 19:06 ` Oleksii Moisieiev
2021-12-24 0:16 ` Stefano Stabellini
2021-12-24 13:29 ` Julien Grall
2021-12-24 13:59 ` Oleksii Moisieiev
2021-12-24 14:28 ` Julien Grall
2021-12-24 16:49 ` Oleksii Moisieiev
2022-01-03 14:23 ` Julien Grall
2022-01-06 15:19 ` Oleksii Moisieiev
2021-12-24 14:07 ` Oleksii Moisieiev
2022-01-19 12:04 ` Oleksii Moisieiev
2022-01-20 1:28 ` Stefano Stabellini
2022-01-20 10:21 ` Oleksii Moisieiev
2022-01-20 22:29 ` Stefano Stabellini
2022-01-21 15:07 ` Oleksii Moisieiev
2022-01-21 20:49 ` Stefano Stabellini
2022-01-24 18:22 ` Oleksii Moisieiev
2022-01-24 19:06 ` Stefano Stabellini
2022-01-24 19:26 ` Julien Grall
2022-01-24 22:14 ` Stefano Stabellini
2022-01-25 14:35 ` Oleksii Moisieiev
2022-01-25 21:19 ` Stefano Stabellini
2022-01-27 18:11 ` Oleksii Moisieiev
2022-01-27 21:18 ` Stefano Stabellini
2021-12-14 9:34 ` [RFC v1 4/5] tools/arm: add "scmi_smc" option to xl.cfg Oleksii Moisieiev
2021-12-15 21:51 ` Oleksandr [this message]
2021-12-17 11:00 ` Oleksii Moisieiev
2021-12-21 0:54 ` Stefano Stabellini
2021-12-22 10:24 ` Oleksii Moisieiev
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 19:13 ` Oleksii Moisieiev
2021-12-21 13:27 ` Anthony PERARD
2021-12-22 12:20 ` Oleksii Moisieiev
2021-12-14 9:34 ` [RFC v1 5/5] xen/arm: add SCI mediator support for DomUs Oleksii Moisieiev
2021-12-14 9:41 ` Jan Beulich
2021-12-16 17:36 ` Oleksii Moisieiev
2021-12-17 7:12 ` Jan Beulich
2021-12-17 7:16 ` Jan Beulich
2021-12-17 13:40 ` Oleksii Moisieiev
2021-12-16 0:04 ` Oleksandr
2021-12-17 12:15 ` Oleksii Moisieiev
2021-12-21 14:45 ` Anthony PERARD
2021-12-21 21:39 ` Stefano Stabellini
2021-12-22 9:24 ` Julien Grall
2021-12-22 11:17 ` Volodymyr Babchuk
2021-12-22 11:30 ` Julien Grall
2021-12-22 12:34 ` Volodymyr Babchuk
2021-12-22 13:49 ` Julien Grall
2021-12-23 2:23 ` Stefano Stabellini
2021-12-23 19:06 ` Stefano Stabellini
2021-12-24 13:30 ` Julien Grall
2022-01-19 9:40 ` Oleksii Moisieiev
2022-01-20 1:53 ` Stefano Stabellini
2022-01-20 10:27 ` Oleksii Moisieiev
2021-12-23 19:11 ` Oleksii Moisieiev
2021-12-21 1:37 ` Stefano Stabellini
2021-12-22 13:41 ` Oleksii Moisieiev
2021-12-16 0:33 ` [RFC v1 0/5] Introduce SCI-mediator feature Oleksandr
2021-12-17 12:24 ` Oleksii Moisieiev
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=eaed4dac-219f-39ae-7237-0ae67c77869a@gmail.com \
--to=olekstysh@gmail.com \
--cc=Oleksii_Moisieiev@epam.com \
--cc=anthony.perard@citrix.com \
--cc=jgross@suse.com \
--cc=wl@xen.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.