All of lore.kernel.org
 help / color / mirror / Atom feed
From: Doug Goldstein <cardoe@cardoe.com>
To: xen-devel@lists.xen.org
Cc: Wei Liu <wei.liu2@citrix.com>,
	Daniel De Graaf <dgdegra@tycho.nsa.gov>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: [PATCH] tools: make build of FLASK utils/policy explicit
Date: Sat, 16 Jan 2016 14:54:31 -0600	[thread overview]
Message-ID: <569AAE07.1030108@cardoe.com> (raw)
In-Reply-To: <1452807355-7670-1-git-send-email-cardoe@cardoe.com>


[-- Attachment #1.1: Type: text/plain, Size: 4782 bytes --]

On 1/14/16 3:35 PM, Doug Goldstein wrote:
> This patch makes the generation of the FLASK utilities and the policy
> explicit. This drops the two control knobs that affect how the FLASK
> policy and tools are generated and unifies it under one.
> 
> CC: Ian Jackson <ian.jackson@eu.citrix.com>
> CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> CC: Ian Campbell <ian.campbell@citrix.com>
> CC: Wei Liu <wei.liu2@citrix.com>
> CC: Daniel De Graaf <dgdegra@tycho.nsa.gov>
> Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
> ---
> 
> So this patch is a replacement for:
> http://lists.xenproject.org/archives/html/xen-devel/2015-12/msg02538.html
> 
> This drops the old "xsmpolicy" flag for one which hopefully makes it more
> clear that its building the FLASK policy. It also builds the utilities
> only when the new flag is specified. The idea here is to reduce the number
> of knobs to turn and provide more clarity in the process. While this is
> an end-user change it should have no effect on the defaults since Xen does
> not build with XSM/FLASK by default. Most distros I checked provide a
> "xen-tools" package and "xen hypervisor" package so the fact that the knobs
> are separated should not affect their workflow in any meaningful fashion.
> The goal here is clarity. The hypervisor now saves how its configured in
> its .config file (different from the top level Xen .config) in
> /usr/lib/debug and in the future the tools stack could provide info about
> how it was configured or built ala: pkg-config --variable udevdir udev
> 
> There's another way to do this patch that I'm also submitting just to
> generate discussion. But I'm hoping at the end of the discussion we can
> land one of these patches.
> 
> ---
>  INSTALL              | 4 ++--
>  config/Tools.mk.in   | 2 +-
>  tools/Makefile       | 2 +-
>  tools/configure.ac   | 2 +-
>  tools/flask/Makefile | 3 +--
>  5 files changed, 6 insertions(+), 7 deletions(-)
> 
> diff --git a/INSTALL b/INSTALL
> index 3d2e86a..e8cbdfa 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -82,8 +82,8 @@ them ocaml development packages must be installed. If they are missing
>  configure will automatically disable this option.
>    --disable-ocamltools
>  
> -Disable XSM policy compilation.
> -  --disable-xsmpolicy
> +Enable FLASK policy and tools build for XSM
> +  --enable-flask
>  
>  Attempt to build of an OVMF firmware binary. This requires special
>  versions of development tools. Use at your own risk.
> diff --git a/config/Tools.mk.in b/config/Tools.mk.in
> index ccfe137..699526f 100644
> --- a/config/Tools.mk.in
> +++ b/config/Tools.mk.in
> @@ -50,7 +50,7 @@ GIT_HTTP            := @githttp@
>  # Optional components
>  XENSTAT_XENTOP      := @monitors@
>  OCAML_TOOLS         := @ocamltools@
> -FLASK_POLICY        := @xsmpolicy@
> +CONFIG_FLASK        := @flask@
>  CONFIG_OVMF         := @ovmf@
>  CONFIG_ROMBIOS      := @rombios@
>  CONFIG_SEABIOS      := @seabios@
> diff --git a/tools/Makefile b/tools/Makefile
> index 9f74ac7..41aa102 100644
> --- a/tools/Makefile
> +++ b/tools/Makefile
> @@ -5,7 +5,7 @@ SUBDIRS-y :=
>  SUBDIRS-y += include
>  SUBDIRS-y += libs
>  SUBDIRS-y += libxc
> -SUBDIRS-$(FLASK_ENABLE) += flask
> +SUBDIRS-$(CONFIG_FLASK) += flask
>  SUBDIRS-y += xenstore
>  SUBDIRS-y += misc
>  SUBDIRS-y += examples
> diff --git a/tools/configure.ac b/tools/configure.ac
> index 6c70040..5caa3ec 100644
> --- a/tools/configure.ac
> +++ b/tools/configure.ac
> @@ -80,7 +80,7 @@ AX_ARG_DEFAULT_DISABLE([rpath], [Build tools with -Wl,-rpath,LIBDIR])
>  AX_ARG_DEFAULT_DISABLE([githttp], [Download GIT repositories via HTTP])
>  AX_ARG_DEFAULT_ENABLE([monitors], [Disable xenstat and xentop monitoring tools])
>  AX_ARG_DEFAULT_ENABLE([ocamltools], [Disable Ocaml tools])
> -AX_ARG_DEFAULT_ENABLE([xsmpolicy], [Disable XSM policy compilation])
> +AX_ARG_DEFAULT_DISABLE([flask], [Enable building FLASK policy and tools for XSM])
>  AX_ARG_DEFAULT_DISABLE([ovmf], [Enable OVMF])
>  AX_ARG_DEFAULT_ENABLE([seabios], [Disable SeaBIOS])
>  
> diff --git a/tools/flask/Makefile b/tools/flask/Makefile
> index a31cc16..ad1ea7a 100644
> --- a/tools/flask/Makefile
> +++ b/tools/flask/Makefile
> @@ -1,8 +1,7 @@
>  XEN_ROOT = $(CURDIR)/../..
>  include $(XEN_ROOT)/tools/Rules.mk
>  
> -SUBDIRS-y := utils
> -SUBDIRS-$(FLASK_POLICY) += policy
> +SUBDIRS-y := utils policy
>  
>  .PHONY: all clean install distclean
>  all clean install distclean: %: subdirs-%
> 

Given the support of the maintainers and committers for the proposal
[1], this patch should NOT be applied.

[1]
http://lists.xenproject.org/archives/html/xen-devel/2016-01/msg01796.html


-- 
Doug Goldstein


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2016-01-16 20:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14 21:35 [PATCH] tools: make build of FLASK utils/policy explicit Doug Goldstein
2016-01-16 20:54 ` Doug Goldstein [this message]

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=569AAE07.1030108@cardoe.com \
    --to=cardoe@cardoe.com \
    --cc=dgdegra@tycho.nsa.gov \
    --cc=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.