public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Leif Lindholm" <quic_llindhol@quicinc.com>
To: <Pierre.Gondois@arm.com>
Cc: <devel@edk2.groups.io>, Sami Mujawar <sami.mujawar@arm.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Rebecca Cran <rebecca@bsdio.com>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Jiewen Yao <jiewen.yao@intel.com>,
	Jian J Wang <jian.j.wang@intel.com>
Subject: Re: [PATCH v7 05/19] ArmPkg/ArmHvcLibNull: Add NULL instance of ArmHvcLib
Date: Wed, 5 Oct 2022 12:34:46 +0100	[thread overview]
Message-ID: <Yz1r1j33ZCB3YqOc@qc-i7.hemma.eciton.net> (raw)
In-Reply-To: <20221003073503.2937059-6-Pierre.Gondois@arm.com>

For simplicity:

For 1-5/19:
Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com>


On Mon, Oct 03, 2022 at 09:34:49 +0200, Pierre.Gondois@arm.com wrote:
> From: Pierre Gondois <Pierre.Gondois@arm.com>
> 
> Add a Null instance of ArmHvcLib in case of library dependencies.
> 
> Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
> ---
>  ArmPkg/ArmPkg.dsc                             |  1 +
>  ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c  | 29 +++++++++++++++++++
>  .../Library/ArmHvcLibNull/ArmHvcLibNull.inf   | 22 ++++++++++++++
>  3 files changed, 52 insertions(+)
>  create mode 100644 ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c
>  create mode 100644 ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.inf
> 
> diff --git a/ArmPkg/ArmPkg.dsc b/ArmPkg/ArmPkg.dsc
> index 13e20a258e9e..11b473974463 100644
> --- a/ArmPkg/ArmPkg.dsc
> +++ b/ArmPkg/ArmPkg.dsc
> @@ -132,6 +132,7 @@ [Components.common]
>    ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
>  
>    ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
> +  ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.inf
>    ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
>    ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
>    ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.inf
> diff --git a/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c b/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c
> new file mode 100644
> index 000000000000..8edda01a7f0a
> --- /dev/null
> +++ b/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.c
> @@ -0,0 +1,29 @@
> +/** @file
> +  Arm HyperVisor Call (HVC) Null Library.
> +
> +  Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
> +
> +  SPDX-License-Identifier: BSD-2-Clause-Patent
> +
> +**/
> +
> +#include <Library/ArmHvcLib.h>
> +#include <Library/DebugLib.h>
> +
> +/**
> +  Trigger an HVC call
> +
> +  HVC calls can take up to 8 arguments and return up to 4 return values.
> +  Therefore, the 4 first fields in the ARM_HVC_ARGS structure are used
> +  for both input and output values.
> +
> +  @param [in,out]  Args    Arguments for the HVC call.
> +**/
> +VOID
> +ArmCallHvc (
> +  IN OUT ARM_HVC_ARGS  *Args
> +  )
> +{
> +  ASSERT (FALSE);
> +  return;
> +}
> diff --git a/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.inf b/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.inf
> new file mode 100644
> index 000000000000..e390a5fbbe21
> --- /dev/null
> +++ b/ArmPkg/Library/ArmHvcLibNull/ArmHvcLibNull.inf
> @@ -0,0 +1,22 @@
> +## @file
> +#  Arm Hvc Null Library
> +#
> +#  Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
> +#
> +#  SPDX-License-Identifier: BSD-2-Clause-Patent
> +##
> +
> +[Defines]
> +  INF_VERSION                    = 1.29
> +  BASE_NAME                      = ArmHvcLibNull
> +  FILE_GUID                      = 02076A46-D6DB-48DD-8E5F-153172DD73A1
> +  MODULE_TYPE                    = BASE
> +  VERSION_STRING                 = 1.0
> +  LIBRARY_CLASS                  = ArmHvcLib
> +
> +[Sources]
> +  ArmHvcLibNull.c
> +
> +[Packages]
> +  ArmPkg/ArmPkg.dec
> +  MdePkg/MdePkg.dec
> -- 
> 2.25.1
> 

  reply	other threads:[~2022-10-05 11:34 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-03  7:34 [PATCH v7 00/19] Add Raw algorithm support using Arm FW-TRNG interface PierreGondois
2022-10-03  7:34 ` [PATCH v7 01/19] ArmPkg: PCD to select conduit for monitor calls PierreGondois
2022-10-03  7:34 ` [PATCH v7 02/19] ArmPkg/ArmMonitorLib: Definition for ArmMonitorLib library class PierreGondois
2022-10-03  7:34 ` [PATCH v7 03/19] ArmPkg/ArmMonitorLib: Add ArmMonitorLib PierreGondois
2022-10-03  7:34 ` [PATCH v7 04/19] ArmPkg: Sort HVC/SMC section alphbetically in ArmPkg.dsc PierreGondois
2022-10-03  7:34 ` [PATCH v7 05/19] ArmPkg/ArmHvcLibNull: Add NULL instance of ArmHvcLib PierreGondois
2022-10-05 11:34   ` Leif Lindholm [this message]
2022-10-03  7:34 ` [PATCH v7 06/19] MdePkg/TrngLib: Definition for TRNG library class interface PierreGondois
2022-10-03  7:34 ` [PATCH v7 07/19] MdePkg/TrngLib: Add NULL instance of TRNG Library PierreGondois
2022-10-03  7:34 ` [PATCH v7 08/19] ArmPkg: Add FID definitions for Firmware TRNG PierreGondois
2022-10-05 11:39   ` Leif Lindholm
2022-10-03  7:34 ` [PATCH v7 09/19] ArmPkg/TrngLib: Add Arm Firmware TRNG library PierreGondois
2022-10-05 11:43   ` [edk2-devel] " Leif Lindholm
2022-10-03  7:34 ` [PATCH v7 10/19] SecurityPkg/RngDxe: Rename RdRandGenerateEntropy to generic name PierreGondois
2022-10-03  7:34 ` [PATCH v7 11/19] SecurityPkg/RngDxe: Replace Pcd with Sp80090Ctr256Guid PierreGondois
2022-10-03  7:34 ` [PATCH v7 12/19] SecurityPkg/RngDxe: Remove ArchGetSupportedRngAlgorithms() PierreGondois
2022-10-03  7:34 ` [PATCH v7 13/19] SecurityPkg/RngDxe: Documentation/include/parameter cleanup PierreGondois
2022-10-03  7:34 ` [PATCH v7 14/19] SecurityPkg/RngDxe: Check before advertising Cpu Rng algo PierreGondois
2022-10-03  7:34 ` [PATCH v7 15/19] SecurityPkg/RngDxe: Add AArch64 RawAlgorithm support through TrngLib PierreGondois
2022-10-03  7:35 ` [PATCH v7 16/19] SecurityPkg/RngDxe: Add debug warning for NULL PcdCpuRngSupportedAlgorithm PierreGondois
2022-10-03  7:35 ` [PATCH v7 17/19] SecurityPkg/RngDxe: Rename AArch64/RngDxe.c PierreGondois
2022-10-05 11:44   ` Leif Lindholm
2022-10-03  7:35 ` [PATCH v7 18/19] SecurityPkg/RngDxe: Add Arm support of RngDxe PierreGondois
2022-10-03  7:35 ` [PATCH v7 19/19] ArmVirtPkg: Kvmtool: Add RNG support using FW-TRNG interface PierreGondois

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-list 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=Yz1r1j33ZCB3YqOc@qc-i7.hemma.eciton.net \
    --to=devel@edk2.groups.io \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox