All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <George.Dunlap@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Stefano Stabellini <sstabellini@kernel.org>,
	Julien Grall <julien@xen.org>,
	"cjwatson@debian.org" <cjwatson@debian.org>, Wei Liu <wl@xen.org>,
	Andrew Cooper <Andrew.Cooper3@citrix.com>,
	"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
	Ian Jackson <Ian.Jackson@citrix.com>,
	Daniel De Graaf <dgdegra@tycho.nsa.gov>
Subject: Re: Xen XSM/FLASK policy, grub defaults, etc.
Date: Fri, 29 May 2020 09:55:44 +0000	[thread overview]
Message-ID: <9A98D1CA-83E5-4E03-8ED6-E353653338CB@citrix.com> (raw)
In-Reply-To: <757d53a0-ec8f-62f1-ca20-72eaf9e1c84d@suse.com>



> On May 29, 2020, at 9:52 AM, Jan Beulich <jbeulich@suse.com> wrote:
> 
> On 27.05.2020 18:08, George Dunlap wrote:
>>> On May 27, 2020, at 4:41 PM, Ian Jackson <ian.jackson@citrix.com> wrote:
>>> 2. Xen should disable the XSM policy build when FLASK is disabled.
>>> This is unfortunately not so simple because the XSM policy build is a
>>> tools option and FLASK is a Xen option and the configuration systems
>>> are disjoint.  But at the very least a default build, which has no XSM
>>> support, should not build an XSM policy file either.
>> 
>> A simple thing to do here would be to have the flask policy controlled by a configure --flask option.  If neither --flask nor --no-flask is specified, we could maybe have configure also check the contents of xen/.config to see if CONFIG_XSM_FLASK is enabled?
> 
> But that's creating a chicken-and-egg problem: There's no ordering
> between the tools/ and xen/ builds. xen/ may not be built at all,
> and this is going to become increasingly likely once the xen/ part
> of the tree supports out-of-tree builds (at least I'll switch most
> of my build trees to that model as soon as it's available).

Do out-of-tree builds put the .config out of tree as well?  If so, yes, that would definitely limit the usefulness of this idea.

My suggestion was based on the idea that a “typical” build *which might enable XSM* would look like this:

1. Run ‘make menuconfig’ (or something like it) in xen/

2. Run ./configure at the toplevel

3. Do the full build.

But looking back at it, there’s no particular reason that someone coming to build Xen might expect to do things in that order rather than #1.

It might make sense to simply declare that the tools depend on the xen config, and modifying ./configure to represent that:

1. Add a `—xen-config=` option to configure telling it where to look for the xen config; if that’s not specified, look for a specific shell variable saying where the Xen tree is; if that’s not available, looking in the current tree.

2. Have ./configure fail by default if it can’t find a .config, unless —no-xen-config is specified.

> Do we perhaps need to resort to a make command line option, usable
> at the top level as well as for major subtree builds, and being
> honored (as long as set either way, falling back to current
> behavior if unset) by both ./configure and the hypervisor's
> Kconfig?

What kind of command-line option did you have in mind?

 -George

  reply	other threads:[~2020-05-29  9:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-27 15:41 Xen XSM/FLASK policy, grub defaults, etc Ian Jackson
2020-05-27 16:08 ` George Dunlap
2020-05-29  8:52   ` Jan Beulich
2020-05-29  9:55     ` George Dunlap [this message]
2020-05-29 10:06       ` Jan Beulich
2020-05-29  9:02   ` Jan Beulich
2020-05-29 10:50   ` Ian Jackson
2020-05-29 10:51     ` Ian Jackson
2020-05-29 10:58     ` George Dunlap
2020-05-29 11:02     ` Jan Beulich
2020-05-29 11:26       ` George Dunlap
2020-05-29 14:47         ` Ian Jackson
2020-05-29 14:56           ` Jan Beulich
2020-05-29 15:05           ` Julien Grall
2020-05-29 15:11             ` Jan Beulich
2020-05-29 17:24               ` Julien Grall
2020-06-01 12:57                 ` George Dunlap
2020-06-01 13:10                   ` Julien Grall
2020-06-01 13:35                     ` George Dunlap
2020-06-01 13:57                       ` Julien Grall
2020-06-01 14:05                   ` Ian Jackson
2020-06-02  7:21                 ` Jan Beulich
2020-06-02  8:26                   ` Julien Grall
2020-06-02  8:30                     ` Jürgen Groß
2020-06-02  8:39                       ` Julien Grall

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=9A98D1CA-83E5-4E03-8ED6-E353653338CB@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=Andrew.Cooper3@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=cjwatson@debian.org \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=jbeulich@suse.com \
    --cc=julien@xen.org \
    --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.