All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Smith" <dpsmith@apertussolutions.com>
To: xen-devel@lists.xenproject.org
Cc: "Daniel P. Smith" <dpsmith@apertussolutions.com>
Subject: [PATCH v3 0/7] xsm: refactoring xsm hooks
Date: Thu,  5 Aug 2021 10:06:37 -0400	[thread overview]
Message-ID: <20210805140644.357-1-dpsmith@apertussolutions.com> (raw)

Based on feedback from 2021 Xen Developers Summit the xsm-roles RFC patch set
is being split into two separate patch sets. This is the first patch set and is
focused purely on the clean up and refactoring of the XSM hooks.

This patch set refactors the xsm_ops wrapper hooks to use the alternative_call
infrastructure. Then proceeds to move and realign the headers to simplify the
unnecessarily complicated header inclusions, remove the facad of being able to
enable/disable XSM, and simplify the XSM hooks down to a single interface and
implementation. The remainder of the changes are clean up and removing no
longer necessary abstractions.

v2:
 - restructured the patches, breaking them up as needed
 - incorporate Andrew Cooper's alternative call common code
 - change XSM module registration, removing register_xsm
 - incoporate KConfig recommendations
 - reworded commit messages
 - incorporate macro expansion recommendations
 - misc clean-up fallout from recommendations

v3:
 - renamed struct xsm_operations to struct xsm_ops
 - flask and silo ops structs made __initconst
 - fixed misplacement of __init on flask/silo_init
 - lots of coding style alignment
 - further clean up from FLASK_DISABLE removal
 - addressed commit message comments
 - removed missed guard around alternative-call include
 - reworked approach to XSM hooks, merging the two interfaces instead of
   dropping one

Andrew Cooper (1):
  xen: Implement xen/alternative-call.h for use in common code

Daniel P. Smith (6):
  xsm: remove the ability to disable flask
  xsm: refactor xsm_ops handling
  xsm: convert xsm_ops hook calls to alternative call
  xsm: decouple xsm header inclusion selection
  xsm: drop generic event channel labeling exclusion
  xsm: removing facade that XSM can be enabled/disabled

 xen/arch/x86/Kconfig               |    1 +
 xen/common/Kconfig                 |   50 +-
 xen/include/public/xsm/flask_op.h  |    2 +-
 xen/include/xen/alternative-call.h |   63 ++
 xen/include/xen/sched.h            |    4 -
 xen/include/xsm/dummy.h            |  711 +----------------
 xen/include/xsm/xsm-core.h         |  247 ++++++
 xen/include/xsm/xsm.h              | 1145 +++++++++++++++++-----------
 xen/xsm/Makefile                   |    3 +-
 xen/xsm/dummy.c                    |  160 ----
 xen/xsm/flask/flask_op.c           |   30 -
 xen/xsm/flask/hooks.c              |   12 +-
 xen/xsm/silo.c                     |   23 +-
 xen/xsm/xsm_core.c                 |   72 +-
 14 files changed, 1083 insertions(+), 1440 deletions(-)
 create mode 100644 xen/include/xen/alternative-call.h
 create mode 100644 xen/include/xsm/xsm-core.h
 delete mode 100644 xen/xsm/dummy.c

-- 
2.20.1



             reply	other threads:[~2021-08-05 14:07 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-05 14:06 Daniel P. Smith [this message]
2021-08-05 14:06 ` [PATCH v3 1/7] xen: Implement xen/alternative-call.h for use in common code Daniel P. Smith
2021-08-05 15:31   ` Jan Beulich
2021-08-05 14:06 ` [PATCH v3 2/7] xsm: remove the ability to disable flask Daniel P. Smith
2021-08-25 15:22   ` Jan Beulich
2021-08-27 13:42     ` Daniel P. Smith
2021-08-05 14:06 ` [PATCH v3 3/7] xsm: refactor xsm_ops handling Daniel P. Smith
2021-08-25 15:16   ` Jan Beulich
2021-08-27 13:44     ` Daniel P. Smith
2021-08-05 14:06 ` [PATCH v3 4/7] xsm: convert xsm_ops hook calls to alternative call Daniel P. Smith
2021-08-05 14:06 ` [PATCH v3 5/7] xsm: decouple xsm header inclusion selection Daniel P. Smith
2021-08-26  8:13   ` Jan Beulich
2021-08-27 14:06     ` Daniel P. Smith
2021-08-30 13:24       ` Jan Beulich
2021-08-30 13:41         ` Daniel P. Smith
2021-08-30 13:46           ` Jan Beulich
2021-08-30 13:55             ` Daniel P. Smith
2021-08-05 14:06 ` [PATCH v3 6/7] xsm: drop generic event channel labeling exclusion Daniel P. Smith
2021-08-25 15:44   ` Jan Beulich
2021-08-27 14:16     ` Daniel P. Smith
2021-08-30 13:25       ` Jan Beulich
2021-08-05 14:06 ` [PATCH v3 7/7] xsm: removing facade that XSM can be enabled/disabled Daniel P. Smith
2021-08-26  9:37   ` Jan Beulich
2021-08-30 12:11     ` Daniel P. Smith
2021-08-30 13:34       ` 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=20210805140644.357-1-dpsmith@apertussolutions.com \
    --to=dpsmith@apertussolutions.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.