Re: [PATCH v2 2/5] MdeMoudlePkg: introduce new PCD for Acpi/rsdp

Jianyong Wu

Hi Laszlo,

-----Original Message-----
From: Laszlo Ersek <lersek@...>
Sent: Wednesday, May 19, 2021 2:17 PM
To:; Jianyong Wu <Jianyong.Wu@...>;
ardb+tianocore@...; Sami Mujawar <Sami.Mujawar@...>
Cc: hao.a.wu@...; Justin He <Justin.He@...>; Jian J Wang
Subject: Re: [edk2-devel] [PATCH v2 2/5] MdeMoudlePkg: introduce new
PCD for Acpi/rsdp

On 05/17/21 08:50, Jianyong Wu wrote:
As there is lack of a machnism in Cloud Hypervisor to pass the base
address of Rsdp in Acpi, so a PCD varialbe is introduced here to feed

Cc: Hao A Wu <hao.a.wu@...>
Cc: Jian J Wang <>
Signed-off-by: Jianyong Wu <jianyong.wu@...>
MdeModulePkg/MdeModulePkg.dec | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/MdeModulePkg/MdeModulePkg.dec
b/MdeModulePkg/MdeModulePkg.dec index
--- a/MdeModulePkg/MdeModulePkg.dec
+++ b/MdeModulePkg/MdeModulePkg.dec
@@ -910,6 +910,13 @@ [PcdsFixedAtBuild]
# @Expression 0x80000001 |
gEfiMdeModulePkgTokenSpaceGuid.PcdLoadModuleAtFixAddressEnable <=


+ ##
+ # This is the physical address of rsdp which is the core struct of Acpi.
+ # Some hypervisor may has no way to pass rsdp address to the guest,
+ so a PCD # is worth for those.
+ #
+ 0001056
## Progress Code for OS Loader LoadImage start.<BR><BR>
# @Prompt Progress Code for OS Loader LoadImage start.
This PCD is not useful enough to be placed in MdeModulePkg -- it is only
used in the next two patches, which are for ArmVirtPkg.

(1) Therefore, please add the PCD to the "ArmVirtPkg.dec" file.

(2) The PCD should arguably refer to "CloudHv" in the name.

(3) In my opinion, this patch (once reimplemented for ArmVirtPkg.dec)
should be squashed into the CloudHvAcpiPlatformDxe patch. The PCD is
being introduced *for* CloudHvAcpiPlatformDxe, and *only* for that driver.
In such cases, we usually keep the DEC modifications in the same patch as
the driver addition, assuming the PCD goes in the same package as the driver.

(4) "some hypervisor" in the DEC comment is bogus. Please be as explicit
about the use case as possible.
OK, that's better.


IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Join { to automatically receive all group messages.