7cd55f3009
OvmfPkg/AcpiPlatformDxe: Return error if installing NotifyProtocol failed
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4237
Installation of gQemuAcpiTableNotifyProtocol may fail. The error code
should be returned so that the caller can handle it.
Cc: Erdem Aktas <erdemaktas@google.com >
Cc: James Bottomley <jejb@linux.ibm.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Cc: Sebastien Boeuf <sebastien.boeuf@intel.com >
Signed-off-by: Min Xu <min.m.xu@intel.com >
Message-Id: <20230111012235.189-7-min.m.xu@intel.com >
Reviewed-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-15 10:26:15 +00:00
f81273f7fb
OvmfPkg/AcpiPlatformDxe: Use local variable in CloudHvAcpi.c
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4237
The handle of mChAcpiHandle is not needed for anything, beyond the
scope of the InstallCloudHvTablesTdx (). A local variable (ChAcpiHandle)
suffices for storing the handle.
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Erdem Aktas <erdemaktas@google.com >
Cc: James Bottomley <jejb@linux.ibm.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Cc: Sebastien Boeuf <sebastien.boeuf@intel.com >
Reported-by: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Min Xu <min.m.xu@intel.com >
Message-Id: <20230111012235.189-3-min.m.xu@intel.com >
Reviewed-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-15 10:26:15 +00:00
43b3ca6b7f
OvmfPkg/AcpiPlatformDxe: Remove QEMU_ACPI_TABLE_NOTIFY_PROTOCOL
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4237
The QEMU_ACPI_TABLE_NOTIFY_PROTOCOL structure is superfluous because NULL
protocol interfaces have been used in edk2 repeatedly. A protocol instance
can exist in the protocol database with a NULL associated interface.
Therefore the QEMU_ACPI_TABLE_NOTIFY_PROTOCOL type, the
"QemuAcpiTableNotify.h" header, and the "mAcpiNotifyProtocol" global
variable can be removed.
Cc: Laszlo Ersek <lersek@redhat.com >
Cc: Erdem Aktas <erdemaktas@google.com >
Cc: James Bottomley <jejb@linux.ibm.com >
Cc: Jiewen Yao <jiewen.yao@intel.com >
Cc: Gerd Hoffmann <kraxel@redhat.com >
Cc: Tom Lendacky <thomas.lendacky@amd.com >
Cc: Sebastien Boeuf <sebastien.boeuf@intel.com >
Reported-by: Laszlo Ersek <lersek@redhat.com >
Reviewed-by: Laszlo Ersek <lersek@redhat.com >
Signed-off-by: Min Xu <min.m.xu@intel.com >
Message-Id: <20230111012235.189-2-min.m.xu@intel.com >
Reviewed-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2023-01-15 10:26:15 +00:00
e254c71e9e
OvmfPkg/AcpiPlatformDxe: Differentiate TDX case for Cloud Hypervisor
...
Rely on CcProbe() to identify when running on TDX so that ACPI tables
can be retrieved differently for Cloud Hypervisor. Instead of relying on
the PVH structure to find the RSDP pointer, the tables are individually
passed through the HOB.
Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Reviewed-by: Min Xu <min.m.xu@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2022-12-16 02:37:56 +00:00
d50d9e5549
OvmfPkg: CloudHv: Retrieve RSDP address from PVH
...
Instead of hardcoding the address of the RSDP in the firmware, let's
rely on the PVH structure hvm_start_info to retrieve this information.
Acked-by: Gerd Hoffmann <kraxel@redhat.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
2022-03-04 02:41:57 +00:00
7594c5bfe2
OvmfPkg: Install ACPI tables for Cloud Hypervisor
...
Adding support for retrieving the Cloud Hypervisor ACPI tables as a
fallback mechanism if tables are not found through fw_cfg.
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com >
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com >
Signed-off-by: Rob Bradford <robert.bradford@intel.com >
Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com >
2021-12-11 14:26:05 +00:00