From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Alejandro Vallejo <alejandro.vallejo@cloud.com>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
Julien Grall <julien@xen.org>, Wei Liu <wl@xen.org>,
sergiy_kibrik@epam.com
Subject: Re: [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode
Date: Wed, 22 Jan 2025 10:49:04 +0100 [thread overview]
Message-ID: <Z5C_EJEtorK2pwGE@macbook.local> (raw)
In-Reply-To: <c897005a-2e8e-4031-a828-acb8128f7c0c@suse.com>
On Wed, Jan 22, 2025 at 09:43:53AM +0100, Jan Beulich wrote:
> On 21.01.2025 19:02, Roger Pau Monné wrote:
> > On Tue, Jan 21, 2025 at 11:35:42AM +0100, Jan Beulich wrote:
> >> On 21.01.2025 09:52, Roger Pau Monné wrote:
> >>> On Tue, Jan 21, 2025 at 09:13:38AM +0100, Jan Beulich wrote:
> >>>> On 21.01.2025 00:27, Stefano Stabellini wrote:
> >>>>> If I understood it right, I like Andrew's suggestion. He is suggesting
> >>>>> to do the following:
> >>>>>
> >>>>> - turning PV_SHIM_EXCLUSIVE into something that does nothing
> >>>>
> >>>> FTAOD - you mean Kconfig-wise? Andrew clearly didn't say "nothing", but
> >>>> "nothing other than making the boolean be a compile time constant".
> >>>
> >>> Won't making the boolean a compile time constant would also result in
> >>> DCO kicking in and removing a fair amount of code? So even if you
> >>> have enabled everything in Kconfig, the resulting hypervisor would
> >>> only be suitable to be used as a shim?
> >>
> >> Of course.
> >
> > Then what's the point of this approach? Options will be enabled in
> > Kconfig, but the resulting hypervisor build when using allyesconfig
> > would have a lot of them short-circuited, making it even worse than
> > currently? As options will get effectively build-time disabled due
> > to DCO while enabled in Kconfig.
>
> Well, I have to direct this question to Andrew. It is specifically
> what I'm trying to address with UNCONSTRAINED.
>
> > Overall I think PV_SHIM_EXCLUSIVE should be excluded from
> > allyesconfig, even with Andrew's proposed change. Otherwise the
> > purpose of allyesconfig is defeated if enabling PV_SHIM_EXCLUSIVE
> > makes the resulting hypervisor build PV shim only. IIRC we can
> > provide a default alllyes.config with CONFIG_PV_SHIM_EXCLUSIVE=n.
>
> Hmm, I wasn't aware of the option of using allyes.config. That might be
> the route to go, albeit it looks like people using the allyesconfig
> target then need to remember to set KCONFIG_ALLCONFIG in the environment
> (to <empty> or 1), or to explicitly specify a file name that way. (This
> of course ought to be easy enough to arrange for in our automation.)
My knowledge of Kconfig is very limited, but isn't there a default
path for such file to be picked up by Kconfig? I see we already have
a xen/tools/kconfig/allrandom.config, I was expecting it would be a
matter of dropping an allyes.config in that directory, but I haven't
tried.
Thanks, Roger.
next prev parent reply other threads:[~2025-01-22 9:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-01 14:11 [PATCH v2 0/4] x86/pv-shim: configuring / building re-arrangements Jan Beulich
2023-03-01 14:13 ` [PATCH v2 1/4] x86: provide an inverted Kconfig control for shim-exclusive mode Jan Beulich
2025-01-17 0:31 ` Stefano Stabellini
2025-01-17 7:23 ` Jan Beulich
2025-01-17 10:31 ` Roger Pau Monné
2025-01-17 12:24 ` Alejandro Vallejo
2025-01-17 12:41 ` Jan Beulich
2025-01-17 22:43 ` Stefano Stabellini
2025-01-17 23:41 ` Andrew Cooper
2025-01-20 7:53 ` Jan Beulich
2025-01-20 23:27 ` Stefano Stabellini
2025-01-21 8:13 ` Jan Beulich
2025-01-21 8:52 ` Roger Pau Monné
2025-01-21 10:35 ` Jan Beulich
2025-01-21 18:02 ` Roger Pau Monné
2025-01-22 8:43 ` Jan Beulich
2025-01-22 9:49 ` Roger Pau Monné [this message]
2025-01-22 13:24 ` Jan Beulich
2025-01-22 21:50 ` Stefano Stabellini
2025-02-18 19:01 ` Stefano Stabellini
2023-03-01 14:14 ` [PATCH v2 2/4] common: reduce PV shim footprint Jan Beulich
2023-03-01 14:15 ` [PATCH v2 3/4] x86/pv-shim: don't even allow enabling GRANT_TABLE Jan Beulich
2023-03-01 14:16 ` [PATCH v2 4/4] x86/pv-shim: suppress core-parking logic 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=Z5C_EJEtorK2pwGE@macbook.local \
--to=roger.pau@citrix.com \
--cc=alejandro.vallejo@cloud.com \
--cc=andrew.cooper3@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=sergiy_kibrik@epam.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.