]> git.proxmox.com Git - mirror_edk2.git/commit - ArmVirtPkg/ArmVirtPkg.dec
ArmVirtPkg: Install Acpi tables for Cloud Hypervisor
authorJianyong Wu <jianyong.wu@arm.com>
Mon, 5 Jul 2021 10:06:40 +0000 (18:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 7 Jul 2021 16:41:37 +0000 (16:41 +0000)
commitc28fc8ab3bc1376484cc8cd1dc959e288741a4d1
tree9d0af176f91b29c8ef9d485d08c159f4cf5d9d47
parent31fcee6d99daa9c6b733371f20a69c8b26e0ab77
ArmVirtPkg: Install Acpi tables for Cloud Hypervisor

There is no device like Fw-cfg in Qemu in Cloud Hypervisor, so a specific
Acpi handler is introduced here.

The handler implemented here is in a very simple way:
1. acquire the RSDP from the PCD variable in the top ".dsc";
2. get the XSDT address from RSDP structure;
3. get the ACPI tables following the XSDT structure and install them
one by one;
4. get DSDT address from FADT and install DSDT table.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
ArmVirtPkg/ArmVirtPkg.dec
ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpi.c [new file with mode: 0644]
ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf [new file with mode: 0644]