All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Juergen Gross <jgross@suse.com>
Cc: "Kevin Tian" <kevin.tian@intel.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Julien Grall" <julien@xen.org>, "Wei Liu" <wl@xen.org>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"Ian Jackson" <ian.jackson@eu.citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Jun Nakajima" <jun.nakajima@intel.com>,
	xen-devel@lists.xenproject.org,
	"Daniel De Graaf" <dgdegra@tycho.nsa.gov>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Roger Pau Monné" <roger.pau@citrix.com>
Subject: Re: [PATCH v8 12/12] xen: remove XEN_SYSCTL_set_parameter support
Date: Thu, 14 May 2020 15:03:04 +0200	[thread overview]
Message-ID: <2c962dd4-5af6-e09e-d712-18f8a92b4a92@suse.com> (raw)
In-Reply-To: <20200508153421.24525-13-jgross@suse.com>

On 08.05.2020 17:34, Juergen Gross wrote:

Besides the changes made, wouldn't it be worthwhile to change
HYPFS Kconfig help wording from "result in some features not
being available" to something mentioning runtime parameter
setting in particular, and perhaps also from "might" to "will"?

> --- a/xen/arch/x86/hvm/vmx/vmcs.c
> +++ b/xen/arch/x86/hvm/vmx/vmcs.c
> @@ -71,27 +71,6 @@ static bool __read_mostly opt_ept_pml = true;
>  static s8 __read_mostly opt_ept_ad = -1;
>  int8_t __read_mostly opt_ept_exec_sp = -1;
>  
> -#ifdef CONFIG_HYPFS
> -static char opt_ept_setting[10];
> -
> -static void update_ept_param(void)
> -{
> -    if ( opt_ept_exec_sp >= 0 )
> -        snprintf(opt_ept_setting, sizeof(opt_ept_setting), "exec-sp=%d",
> -                 opt_ept_exec_sp);
> -}
> -
> -static void __init init_ept_param(struct param_hypfs *par)
> -{
> -    update_ept_param();
> -    custom_runtime_set_var(par, opt_ept_setting);
> -}
> -#else
> -static void update_ept_param(void)
> -{
> -}
> -#endif
> -
>  static int __init parse_ept_param(const char *s)
>  {
>      const char *ss;
> @@ -118,6 +97,22 @@ static int __init parse_ept_param(const char *s)
>  }
>  custom_param("ept", parse_ept_param);
>  
> +#ifdef CONFIG_HYPFS
> +static char opt_ept_setting[10];
> +
> +static void update_ept_param(void)
> +{
> +    if ( opt_ept_exec_sp >= 0 )
> +        snprintf(opt_ept_setting, sizeof(opt_ept_setting), "exec-sp=%d",
> +                 opt_ept_exec_sp);
> +}
> +
> +static void __init init_ept_param(struct param_hypfs *par)
> +{
> +    update_ept_param();
> +    custom_runtime_set_var(par, opt_ept_setting);
> +}

If I'm not mistaken this is pure code movement, and solely to be
able to have ...

> +
>  static int parse_ept_param_runtime(const char *s);
>  custom_runtime_only_param("ept", parse_ept_param_runtime, init_ept_param);
>  
> @@ -172,6 +167,7 @@ static int parse_ept_param_runtime(const char *s)
>  
>      return 0;
>  }
> +#endif

... a single #ifdef region now including a few more lines. No
strict need to change it, but couldn't the earlier patch have
inserted the code in its final place right away?

> @@ -1106,7 +1090,7 @@ struct xen_sysctl {
>  #define XEN_SYSCTL_get_cpu_levelling_caps        25
>  #define XEN_SYSCTL_get_cpu_featureset            26
>  #define XEN_SYSCTL_livepatch_op                  27
> -#define XEN_SYSCTL_set_parameter                 28
> +/* #define XEN_SYSCTL_set_parameter                 28 */

Nit: There are now 3 too many padding spaces. Granted that's
how it was done for XEN_SYSCTL_tmem_op ...

In any event, as before,
Acked-by: Jan Beulich <jbeulich@suse.com>

Jan


  reply	other threads:[~2020-05-14 13:03 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-08 15:34 [PATCH v8 00/12] Add hypervisor sysfs-like support Juergen Gross
2020-05-08 15:34 ` [PATCH v8 01/12] xen/vmx: let opt_ept_ad always reflect the current setting Juergen Gross
2020-05-08 15:34 ` [PATCH v8 02/12] xen: add a generic way to include binary files as variables Juergen Gross
2020-05-08 15:34 ` [PATCH v8 03/12] docs: add feature document for Xen hypervisor sysfs-like support Juergen Gross
2020-05-08 15:34 ` [PATCH v8 04/12] xen: add basic hypervisor filesystem support Juergen Gross
2020-05-14  7:59   ` Jan Beulich
2020-05-14  9:50     ` Jürgen Groß
2020-05-14 11:58       ` Jan Beulich
2020-05-14 12:12         ` Jürgen Groß
2020-05-15  5:33       ` Jürgen Groß
2020-05-15  9:27         ` Jan Beulich
2020-05-14  9:55   ` Jan Beulich
2020-05-14  9:58     ` Jürgen Groß
2020-05-08 15:34 ` [PATCH v8 05/12] libs: add libxenhypfs Juergen Gross
2020-05-08 15:34 ` [PATCH v8 06/12] tools: add xenfs tool Juergen Gross
2020-05-08 15:34 ` [PATCH v8 07/12] xen: provide version information in hypfs Juergen Gross
2020-05-08 15:34 ` [PATCH v8 08/12] xen: add /buildinfo/config entry to hypervisor filesystem Juergen Gross
2020-05-14  9:32   ` Jan Beulich
2020-05-14  9:52     ` Jürgen Groß
2020-05-08 15:34 ` [PATCH v8 09/12] xen: add runtime parameter access support to hypfs Juergen Gross
2020-05-14 10:20   ` Jan Beulich
2020-05-14 11:48     ` Jürgen Groß
2020-05-14 12:10       ` Jan Beulich
2020-05-14 14:56         ` Jürgen Groß
2020-05-14 15:02           ` Jan Beulich
2020-05-14 15:43             ` Jürgen Groß
2020-05-08 15:34 ` [PATCH v8 10/12] tools/libxl: use libxenhypfs for setting xen runtime parameters Juergen Gross
2020-05-08 15:34 ` [PATCH v8 11/12] tools/libxc: remove xc_set_parameters() Juergen Gross
2020-05-08 15:34 ` [PATCH v8 12/12] xen: remove XEN_SYSCTL_set_parameter support Juergen Gross
2020-05-14 13:03   ` Jan Beulich [this message]
2020-05-14 14:58     ` Jürgen Groß

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=2c962dd4-5af6-e09e-d712-18f8a92b4a92@suse.com \
    --to=jbeulich@suse.com \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=george.dunlap@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=jun.nakajima@intel.com \
    --cc=kevin.tian@intel.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --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.