From: "Alejandro Vallejo" <alejandro.vallejo@cloud.com>
To: "Jan Beulich" <jbeulich@suse.com>
Cc: <ray.huang@amd.com>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>,
"Penny Zheng" <Penny.Zheng@amd.com>,
<xen-devel@lists.xenproject.org>
Subject: Re: [PATCH v1 02/19] xen/xsm: wrap around xsm_sysctl with CONFIG_SYSCTL
Date: Thu, 13 Mar 2025 14:31:39 +0000 [thread overview]
Message-ID: <D8F7M53TBZKS.2XTO21B8G2HRU@cloud.com> (raw)
In-Reply-To: <34a1119f-62d4-4b73-b1e3-c8e945352829@suse.com>
On Thu Mar 13, 2025 at 12:05 PM GMT, Jan Beulich wrote:
> On 13.03.2025 12:43, Alejandro Vallejo wrote:
> > On Wed Mar 12, 2025 at 4:06 AM GMT, Penny Zheng wrote:
> >> --- a/xen/include/xsm/dummy.h
> >> +++ b/xen/include/xsm/dummy.h
> >> @@ -180,11 +180,18 @@ static XSM_INLINE int cf_check xsm_domctl(
> >> }
> >> }
> >>
> >> +#ifdef CONFIG_SYSCTL
> >> static XSM_INLINE int cf_check xsm_sysctl(XSM_DEFAULT_ARG int cmd)
> >> {
> >> XSM_ASSERT_ACTION(XSM_PRIV);
> >> return xsm_default_action(action, current->domain, NULL);
> >> }
> >> +#else
> >> +static XSM_INLINE int cf_check xsm_sysctl(XSM_DEFAULT_ARG int cmd)
> >> +{
> >> + return -EOPNOTSUPP;
> >> +}
> >> +#endif
> >
> > Doesn't this need to be -ENOSYS instead?
>
> There shouldn't be any ENOSYS outside of the top-level hypercall handlers.
> Granted we have many violations thereof, some of them not very reasonable
> to fix (for guests looking for the specific but wrong error code).
>
> Jan
That would be the case if the else branches were dropped. They have no use
AFAICS.
Cheers,
Alejandro
next prev parent reply other threads:[~2025-03-13 14:31 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 [this message]
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
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=D8F7M53TBZKS.2XTO21B8G2HRU@cloud.com \
--to=alejandro.vallejo@cloud.com \
--cc=Penny.Zheng@amd.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=ray.huang@amd.com \
--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.