From: "Alejandro Vallejo" <alejandro.vallejo@cloud.com>
To: "Penny Zheng" <Penny.Zheng@amd.com>, <xen-devel@lists.xenproject.org>
Cc: ray.huang@amd.com, "Dario Faggioli" <dfaggioli@suse.com>,
"Juergen Gross" <jgross@suse.com>,
"George Dunlap" <gwd@xenproject.org>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Anthony PERARD" <anthony.perard@vates.tech>,
"Michal Orzel" <michal.orzel@amd.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Julien Grall" <julien@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>,
"Stefano Stabellini" <sstabellini@kernel.org>
Subject: Re: [PATCH v1 05/19] xen/sysctl: wrap around XEN_SYSCTL_sched_id
Date: Thu, 13 Mar 2025 12:04:26 +0000 [thread overview]
Message-ID: <D8F4HFBN0ROG.3RRD7E97NYUHD@cloud.com> (raw)
In-Reply-To: <20250312040632.2853485-6-Penny.Zheng@amd.com>
On Wed Mar 12, 2025 at 4:06 AM GMT, Penny Zheng wrote:
> The following function shall be wrapped:
> - scheduler_id
>
> Signed-off-by: Penny Zheng <Penny.Zheng@amd.com>
> ---
> xen/common/sched/core.c | 2 ++
> xen/include/xen/sched.h | 7 +++++++
> 2 files changed, 9 insertions(+)
>
> diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c
> index d6296d99fd..ea452d8b3e 100644
> --- a/xen/common/sched/core.c
> +++ b/xen/common/sched/core.c
> @@ -2052,11 +2052,13 @@ long do_set_timer_op(s_time_t timeout)
> return 0;
> }
>
> +#ifdef CONFIG_SYSCTL
> /* scheduler_id - fetch ID of current scheduler */
> int scheduler_id(void)
> {
> return operations.sched_id;
> }
> +#endif
>
> /* Adjust scheduling parameter for a given domain. */
> long sched_adjust(struct domain *d, struct xen_domctl_scheduler_op *op)
> diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h
> index 559d201e0c..9bdeb85aa4 100644
> --- a/xen/include/xen/sched.h
> +++ b/xen/include/xen/sched.h
> @@ -849,7 +849,14 @@ int sched_init_domain(struct domain *d, unsigned int poolid);
> void sched_destroy_domain(struct domain *d);
> long sched_adjust(struct domain *d, struct xen_domctl_scheduler_op *op);
> long sched_adjust_global(struct xen_sysctl_scheduler_op *op);
> +#ifdef CONFIG_SYSCTL
> int scheduler_id(void);
> +#else
> +static inline int scheduler_id(void)
> +{
> + return -EOPNOTSUPP;
> +}
Is this ever used when sysctl.c is compiled out?
> +#endif
>
> /*
> * sched_get_id_by_name - retrieves a scheduler id given a scheduler name
Cheers,
Alejandro
next prev parent reply other threads:[~2025-03-13 12:04 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-12 4:06 [PATCH v1 00/19] xen: introduce CONFIG_SYSCTL Penny Zheng
2025-03-12 4:06 ` [PATCH v1 01/19] " Penny Zheng
2025-03-12 4:10 ` Penny, Zheng
2025-03-12 8:34 ` Jan Beulich
2025-03-13 10:58 ` Alejandro Vallejo
2025-03-13 16:24 ` Jan Beulich
2025-03-14 9:51 ` Alejandro Vallejo
2025-03-12 4:06 ` [PATCH v1 02/19] xen/xsm: wrap around xsm_sysctl with CONFIG_SYSCTL Penny Zheng
2025-03-12 8:38 ` Jan Beulich
2025-03-13 11:43 ` Alejandro Vallejo
2025-03-13 12:05 ` Jan Beulich
2025-03-13 14:31 ` Alejandro Vallejo
2025-03-12 4:06 ` [PATCH v1 03/19] xen/sysctl: wrap around XEN_SYSCTL_readconsole Penny Zheng
2025-03-13 12:02 ` Alejandro Vallejo
2025-03-20 8:02 ` Penny, Zheng
2025-03-20 8:46 ` Jan Beulich
2025-03-20 9:01 ` Penny, Zheng
2025-03-12 4:06 ` [PATCH v1 04/19] xen/sysctl: make CONFIG_TRACEBUFFER depend on CONFIG_SYSCTL Penny Zheng
2025-03-12 23:07 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 05/19] xen/sysctl: wrap around XEN_SYSCTL_sched_id Penny Zheng
2025-03-12 23:09 ` Stefano Stabellini
2025-03-13 12:04 ` Alejandro Vallejo [this message]
2025-03-12 4:06 ` [PATCH v1 06/19] xen/sysctl: wrap around XEN_SYSCTL_perfc_op Penny Zheng
2025-03-12 23:12 ` Stefano Stabellini
2025-03-13 8:23 ` Jan Beulich
2025-03-13 21:50 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 07/19] xen/sysctl: wrap around XEN_SYSCTL_lockprof_op Penny Zheng
2025-03-12 23:13 ` Stefano Stabellini
2025-03-13 8:24 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 08/19] xen/sysctl: introduce CONFIG_PM_STATISTIC Penny Zheng
2025-03-13 8:44 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 09/19] xen/sysctl: make CONFIG_PM_STATISTIC depend on CONFIG_SYSCTL Penny Zheng
2025-03-13 8:45 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 10/19] xen/page: fix return type of online_page() Penny Zheng
2025-03-12 23:17 ` Stefano Stabellini
2025-03-13 8:30 ` Jan Beulich
2025-03-13 15:12 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 11/19] xen/sysctl: wrap around XEN_SYSCTL_page_offline_op Penny Zheng
2025-03-12 23:19 ` Stefano Stabellini
2025-03-13 8:47 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 12/19] xen/sysctl: wrap around XEN_SYSCTL_cpupool_op Penny Zheng
2025-03-12 23:23 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 13/19] xen/sysctl: wrap around XEN_SYSCTL_scheduler_op Penny Zheng
2025-03-12 23:26 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 14/19] xen: make avail_domheap_pages() static Penny Zheng
2025-03-12 23:28 ` Stefano Stabellini
2025-03-12 23:34 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 15/19] xen/sysctl: wrap around XEN_SYSCTL_physinfo Penny Zheng
2025-03-12 23:35 ` Stefano Stabellini
2025-03-13 9:00 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 16/19] xen/sysctl: wrap around XEN_SYSCTL_coverage_op Penny Zheng
2025-03-12 23:37 ` Stefano Stabellini
2025-03-12 4:06 ` [PATCH v1 17/19] xen/sysctl: wrap around XEN_SYSCTL_livepatch_op Penny Zheng
2025-03-12 23:38 ` Stefano Stabellini
2025-03-13 9:04 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 18/19] xen/sysctl: wrap around arch-specific arch_do_sysctl Penny Zheng
2025-03-12 23:44 ` Stefano Stabellini
2025-03-13 9:05 ` Jan Beulich
2025-03-13 16:33 ` Jan Beulich
2025-03-24 7:59 ` Penny, Zheng
2025-03-24 10:09 ` Jan Beulich
2025-03-12 4:06 ` [PATCH v1 19/19] xen/sysctl: wrap around sysctl hypercall Penny Zheng
2025-03-14 9:27 ` Jan Beulich
2025-03-24 6:11 ` Penny, Zheng
2025-03-24 10:12 ` Jan Beulich
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=D8F4HFBN0ROG.3RRD7E97NYUHD@cloud.com \
--to=alejandro.vallejo@cloud.com \
--cc=Penny.Zheng@amd.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dfaggioli@suse.com \
--cc=gwd@xenproject.org \
--cc=jbeulich@suse.com \
--cc=jgross@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=ray.huang@amd.com \
--cc=roger.pau@citrix.com \
--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.