[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v3 0/3] xsm: refactor and optimize policy loading


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Date: Tue, 31 May 2022 11:08:54 -0400
  • Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=apertussolutions.com; spf=pass smtp.mailfrom=dpsmith@xxxxxxxxxxxxxxxxxxxx; dmarc=pass header.from=<dpsmith@xxxxxxxxxxxxxxxxxxxx>
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654009832; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=j1HktkrmvpiBISVz8NJU02AjYlC6cm7hboaefj1cMXA=; b=dfBQRY9VtUFojQpGteQTat2se+z2iRmX33WieR9TUaQgIjBLa06Q9GwLUUnonZ4tmk0nJSo8fv0wyl7+alNjRpk+43FD+UvJGYqgefKlHPORoAEiBkE7TgAhXZd1gh25cuew1zQOwcNZGLqLmoh5a4CaaQd0u0z65Wl+II6lWVQ=
  • Arc-seal: i=1; a=rsa-sha256; t=1654009832; cv=none; d=zohomail.com; s=zohoarc; b=VuNh5T56RjoCpstSmPnhtDy8P4z4ozgBJXlIQh5tDpgIgTiCwls+3T4jLLhXTRpL6wSj8lABQsuMRjBKDTaFcI+iWMgqJNYZbg1Iz0s+ccisWEB9CKYuc6G3kIjIdGi4ILjiU8nzIZLo2WShN46Nxi6XIuju+PGnet1RkmxCzfU=
  • Cc: "Daniel P. Smith" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, scott.davis@xxxxxxxxxx, christopher.clark@xxxxxxxxxx, jandryuk@xxxxxxxxx
  • Delivery-date: Tue, 31 May 2022 15:10:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This series was born out of some cleanup work done while crafting the
hyperlaunch boot modules patch series. The primary purpose of this series was
to stop walking all boot modules when it was not necessary, but the scope
creeped during review.

Changes in v3:
* added arm Rb for patch #3
* mainly a resend due to fubar on sending v2

Changes in v2:
* changed init_policy to policy_file_required
* split the patch into a series
* corrected casting of policy buffer
* use IS_ENABLED() instead of #ifdef sequence
* moved #ifdef inside of braces for xsm_dt_policy_init()
* addressed lack of error handling of xsm{mb,dt}_init()

Daniel P. Smith (3):
  xsm: only search for a policy file when needed
  xsm: consolidate loading the policy buffer
  xsm: properly handle error from XSM init

 xen/arch/arm/setup.c  | 10 ++++----
 xen/arch/x86/setup.c  |  9 +++++--
 xen/include/xsm/xsm.h |  2 +-
 xen/xsm/xsm_core.c    | 56 +++++++++++++++++++++----------------------
 xen/xsm/xsm_policy.c  | 31 ++++++++++++++++++++----
 5 files changed, 68 insertions(+), 40 deletions(-)

-- 
2.20.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.