All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@vates.tech>
To: "Petr Beneš" <w1benny@gmail.com>
Cc: xen-devel@lists.xenproject.org,
	George Dunlap <george.dunlap@citrix.com>,
	Nick Rosbrook <rosbrookn@gmail.com>,
	Juergen Gross <jgross@suse.com>
Subject: Re: [PATCH for-4.19? v6 4/9] tools/xl: Add altp2m_count parameter
Date: Wed, 12 Jun 2024 08:24:05 +0000	[thread overview]
Message-ID: <ZmlbInvgw6iu7s8b@l14> (raw)
In-Reply-To: <02e0eefe1bed87cb55490f6ea13fa28c94af2a0d.1718038855.git.w1benny@gmail.com>

On Mon, Jun 10, 2024 at 05:10:42PM +0000, Petr Beneš wrote:
> From: Petr Beneš <w1benny@gmail.com>
>
> Introduce a new altp2m_count parameter to control the maximum number of altp2m
> views a domain can use. By default, if altp2m_count is unspecified and altp2m
> is enabled, the value is set to 10, reflecting the legacy behavior.
>
> This change is preparatory; it establishes the groundwork for the feature but
> does not activate it.
>
> Signed-off-by: Petr Beneš <w1benny@gmail.com>
> ---
>  tools/golang/xenlight/helpers.gen.go | 2 ++
>  tools/golang/xenlight/types.gen.go   | 1 +
>  tools/include/libxl.h                | 8 ++++++++
>  tools/libs/light/libxl_create.c      | 9 +++++++++
>  tools/libs/light/libxl_types.idl     | 1 +
>  tools/xl/xl_parse.c                  | 9 +++++++++
>  6 files changed, 30 insertions(+)
>
> diff --git a/tools/include/libxl.h b/tools/include/libxl.h
> index f5c7167742..bfa06caad2 100644
> --- a/tools/include/libxl.h
> +++ b/tools/include/libxl.h
> @@ -1250,6 +1250,14 @@ typedef struct libxl__ctx libxl_ctx;
>   */
>  #define LIBXL_HAVE_ALTP2M 1
>
> +/*
> + * LIBXL_HAVE_ALTP2M_COUNT
> + * If this is defined, then libxl supports setting the maximum number of
> + * alternate p2m tables.
> + */
> +#define LIBXL_HAVE_ALTP2M_COUNT 1
> +#define LIBXL_ALTP2M_COUNT_DEFAULT (~(uint32_t)0)

Can you move this define (LIBXL_ALTP2M_COUNT_DEFAULT) out of the public
header? I don't think this needs to be known to application using libxl
(like xl). You can move it to "libxl_internal.h", I don't think there's
a better place and there's already a few "default" (more like initial
value) define there.

Beside that, the patch looks fine,
so with that change: Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>

Thanks,

--


Anthony Perard | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech



  reply	other threads:[~2024-06-12  8:24 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-10 17:10 [PATCH for-4.19? v6 0/9] x86: Make MAX_ALTP2M configurable Petr Beneš
2024-06-10 17:10 ` [PATCH for-4.19? v6 1/9] tools/ocaml: Fix mixed tabs/spaces Petr Beneš
2024-06-10 17:10 ` [PATCH for-4.19? v6 2/9] tools/ocaml: Add missing ocaml bindings for altp2m_opts Petr Beneš
2024-06-10 17:10 ` [PATCH for-4.19? v6 3/9] xen: Refactor altp2m options into a structured format Petr Beneš
2024-06-11  6:41   ` Jan Beulich
2024-06-11  8:00     ` Petr Beneš
2024-06-11  9:14       ` Jan Beulich
2024-06-11  9:34         ` Petr Beneš
2024-06-11  9:36           ` Jan Beulich
2024-06-11  9:38             ` Petr Beneš
2024-06-17  8:39         ` Christian Lindig
2024-06-11 15:58   ` Anthony PERARD
2024-06-10 17:10 ` [PATCH for-4.19? v6 4/9] tools/xl: Add altp2m_count parameter Petr Beneš
2024-06-12  8:24   ` Anthony PERARD [this message]
2024-06-10 17:10 ` [PATCH for-4.19? v6 5/9] docs/man: Add altp2m_count parameter to the xl.cfg manual Petr Beneš
2024-06-12  8:26   ` Anthony PERARD
2024-06-10 17:10 ` [PATCH for-4.19? v6 6/9] xen: Make the maximum number of altp2m views configurable for x86 Petr Beneš
2024-06-13 12:03   ` Jan Beulich
2024-06-19 15:46     ` Petr Beneš
2024-06-20  7:25       ` Jan Beulich
2024-06-21 11:40         ` Petr Beneš
2024-06-24  7:21           ` Jan Beulich
2024-06-10 17:10 ` [PATCH for-4.19? v6 7/9] tools/libxl: Activate the altp2m_count feature Petr Beneš
2024-06-12  8:31   ` Anthony PERARD
2024-06-10 17:10 ` [PATCH for-4.19? v6 8/9] xen/x86: Disallow creating domains with altp2m enabled and altp2m.nr == 0 Petr Beneš
2024-06-10 17:10 ` [PATCH for-4.19? v6 9/9] tools/ocaml: Add altp2m_count parameter Petr Beneš
2024-10-16 10:10 ` [PATCH for-4.19? v6 0/9] x86: Make MAX_ALTP2M configurable Jan Beulich
2024-10-21 22:09   ` Petr Beneš

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=ZmlbInvgw6iu7s8b@l14 \
    --to=anthony.perard@vates.tech \
    --cc=george.dunlap@citrix.com \
    --cc=jgross@suse.com \
    --cc=rosbrookn@gmail.com \
    --cc=w1benny@gmail.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.