public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "PierreGondois" <pierre.gondois@arm.com>
To: gaoliming <gaoliming@byosoft.com.cn>,
	devel@edk2.groups.io, jiewen.yao@intel.com
Cc: "'Kinney, Michael D'" <michael.d.kinney@intel.com>,
	"'Liu, Zhiguang'" <zhiguang.liu@intel.com>,
	"'Wang, Jian J'" <jian.j.wang@intel.com>,
	'Ard Biesheuvel' <ardb+tianocore@kernel.org>,
	'Sami Mujawar' <sami.mujawar@arm.com>,
	'Jose Marinho' <Jose.Marinho@arm.com>,
	'Kun Qin' <kuqin12@gmail.com>
Subject: Re: 回复: [edk2-devel] [PATCH v3 3/6] MdePkg/Rng: Add GUIDs to describe Rng algorithms
Date: Tue, 11 Jul 2023 14:23:30 +0200	[thread overview]
Message-ID: <cfabf3ae-cb05-d8ed-c5a0-4a53d34ae129@arm.com> (raw)
In-Reply-To: <007f01d9b2cd$8aa15910$9fe40b30$@byosoft.com.cn>

Hello Liming, Jiewen,


On 7/10/23 03:26, gaoliming wrote:
> Pierre:
>    Another option is to define two PCD for Rng algorithm in MdePkg. One PCD value is ArmRndr GUID, another is UnSafe GUID. This way can also resolve the package dependency.

So there would be a Pcd for the unsafe algorithm so that the platform can
choose a custom GUID to advertise the unsafe algorithm ? If so, I think
it would be better to have only one common GUID,

> 
> Thanks
> Liming
>> -----邮件原件-----
>> 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Yao, Jiewen
>> 发送时间: 2023年7月7日 22:34
>> 收件人: devel@edk2.groups.io; Yao, Jiewen <jiewen.yao@intel.com>; Pierre
>> Gondois <pierre.gondois@arm.com>
>> 抄送: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
>> <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>; Wang,
>> Jian J <jian.j.wang@intel.com>; Ard Biesheuvel <ardb+tianocore@kernel.org>;
>> Sami Mujawar <sami.mujawar@arm.com>; Jose Marinho
>> <Jose.Marinho@arm.com>; Kun Qin <kuqin12@gmail.com>
>> 主题: Re: [edk2-devel] [PATCH v3 3/6] MdePkg/Rng: Add GUIDs to describe
>> Rng algorithms
>>
>> I think a better way is to define a new library instance in other package with
>> the new ARM APIs.
>> The old one can be kept as is.
>>
>> That will limit the impact to existing platform.

Yes right,
However this would mean having 2 identical implementations of the BaseRngTimerLib,
I ll try to move the library instead, if it's ok

Regards,
Pierre

>>
>>
>>
>>> -----Original Message-----
>>> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yao,
>> Jiewen
>>> Sent: Friday, July 7, 2023 10:28 PM
>>> To: Pierre Gondois <pierre.gondois@arm.com>; devel@edk2.groups.io
>>> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
>>> <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>;
>> Wang,
>>> Jian J <jian.j.wang@intel.com>; Ard Biesheuvel
>> <ardb+tianocore@kernel.org>;
>>> Sami Mujawar <sami.mujawar@arm.com>; Jose Marinho
>>> <Jose.Marinho@arm.com>; Kun Qin <kuqin12@gmail.com>
>>> Subject: Re: [edk2-devel] [PATCH v3 3/6] MdePkg/Rng: Add GUIDs to
>> describe
>>> Rng algorithms
>>>
>>> Thanks Pierre.
>>> Yes, I agree to move it to other package to resolve dependency issue.
>>>
>>>> -----Original Message-----
>>>> From: Pierre Gondois <pierre.gondois@arm.com>
>>>> Sent: Friday, July 7, 2023 10:25 PM
>>>> To: Yao, Jiewen <jiewen.yao@intel.com>; devel@edk2.groups.io
>>>> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
>>>> <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>;
>> Wang,
>>>> Jian J <jian.j.wang@intel.com>; Ard Biesheuvel
>> <ardb+tianocore@kernel.org>;
>>>> Sami Mujawar <sami.mujawar@arm.com>; Jose Marinho
>>>> <Jose.Marinho@arm.com>; Kun Qin <kuqin12@gmail.com>
>>>> Subject: Re: [edk2-devel] [PATCH v3 3/6] MdePkg/Rng: Add GUIDs to
>> describe
>>>> Rng algorithms
>>>>
>>>> Hello Jiewen,
>>>>
>>>> We have the following dependency issue:
>>>> - the BaseRngTimerLib is in the MdePkg
>>>> - we need a GUID to describe the BaseRngTimerLib algorithm
>>>> - we cannot add the gEdkiiRngAlgorithmUnSafe in the MdePkg, and the
>>>> gZeroGuid is also not in the MdePkg
>>>> - the MdePkg should not have dependencies over other packages
>>>>
>>>> As the BaseRngTimerLib is not really standard and should not be used in
>>>> production builds,
>>>> would you agree if it was moved to the MdeModulePkg or to the
>> SecurityPkg
>>>> (with the gEdkiiRngAlgorithmUnSafe definition) ?
>>>>
>>>> Regards,
>>>> Pierre
>>>>

  reply	other threads:[~2023-07-11 12:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  8:51 [PATCH v3 0/6] SecurityPkg/MdePkg: Update RngLib GUID identification PierreGondois
2023-07-06  8:51 ` [PATCH v3 1/6] SecurityPkg/SecurityPkg.dec: Move PcdCpuRngSupportedAlgorithm to MdePkg PierreGondois
2023-07-06  8:51 ` [PATCH v3 2/6] MdePkg/DxeRngLib: Request raw algorithm instead of default PierreGondois
2023-07-06  8:51 ` [PATCH v3 3/6] MdePkg/Rng: Add GUIDs to describe Rng algorithms PierreGondois
2023-07-07  9:14   ` [edk2-devel] " Yao, Jiewen
2023-07-07 12:49     ` PierreGondois
2023-07-07 12:56       ` Yao, Jiewen
     [not found]       ` <176F972B57840483.2683@groups.io>
2023-07-07 13:05         ` Yao, Jiewen
2023-07-07 14:25           ` PierreGondois
2023-07-07 14:28             ` Yao, Jiewen
     [not found]             ` <176F9C2F554052EE.2683@groups.io>
2023-07-07 14:34               ` Yao, Jiewen
2023-07-10  1:26                 ` 回复: " gaoliming
2023-07-11 12:23                   ` PierreGondois [this message]
2023-07-06  8:51 ` [PATCH v3 4/6] MdePkg/Rng: Add GetRngGuid() to RngLib PierreGondois
2023-07-06  8:51 ` [PATCH v3 5/6] SecurityPkg/RngDxe: Use GetRngGuid() when probing RngLib PierreGondois
2023-07-07  8:07   ` Sami Mujawar
2023-07-06  8:51 ` [PATCH v3 6/6] SecurityPkg/RngDxe: Simplify Rng algorithm selection for Arm PierreGondois
2023-07-06 19:01 ` [PATCH v3 0/6] SecurityPkg/MdePkg: Update RngLib GUID identification Kun Qin
2023-07-12 13:38   ` PierreGondois
2023-07-07  8:26 ` Sami Mujawar

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=cfabf3ae-cb05-d8ed-c5a0-4a53d34ae129@arm.com \
    --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