## @file\r
# EFI/Framework Open Virtual Machine Firmware (OVMF) platform\r
#\r
+# Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>\r
# Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014, Pluribus Networks, Inc.\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
Csm/Include\r
\r
[LibraryClasses]\r
+ ## @libraryclass Access bhyve's firmware control interface.\r
+ BhyveFwCtlLib|Include/Library/BhyveFwCtlLib.h\r
+\r
+ ## @libraryclass Verify blobs read from the VMM\r
+ BlobVerifierLib|Include/Library/BlobVerifierLib.h\r
+\r
## @libraryclass Loads and boots a Linux kernel image\r
#\r
LoadLinuxLib|Include/Library/LoadLinuxLib.h\r
\r
+ ## @libraryclass Declares helper functions for Secure Encrypted\r
+ # Virtualization (SEV) guests.\r
+ MemEncryptSevLib|Include/Library/MemEncryptSevLib.h\r
+\r
+ ## @libraryclass Declares helper functions for TDX guests.\r
+ #\r
+ MemEncryptTdxLib|Include/Library/MemEncryptTdxLib.h\r
+\r
## @libraryclass Save and restore variables using a file\r
#\r
NvVarsFileLib|Include/Library/NvVarsFileLib.h\r
# access.\r
PciCapPciSegmentLib|Include/Library/PciCapPciSegmentLib.h\r
\r
+ ## @libraryclass Provide common utility functions to PciHostBridgeLib\r
+ # instances in ArmVirtPkg and OvmfPkg.\r
+ PciHostBridgeUtilityLib|Include/Library/PciHostBridgeUtilityLib.h\r
+\r
## @libraryclass Register a status code handler for printing the Boot\r
# Manager's LoadImage() and StartImage() preparations, and\r
# return codes, to the UEFI console.\r
PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h\r
\r
+ ## @libraryclass Customize FVB2 protocol member functions for a platform.\r
+ PlatformFvbLib|Include/Library/PlatformFvbLib.h\r
+\r
## @libraryclass Access QEMU's firmware configuration interface\r
#\r
QemuFwCfgLib|Include/Library/QemuFwCfgLib.h\r
#\r
QemuFwCfgS3Lib|Include/Library/QemuFwCfgS3Lib.h\r
\r
+ ## @libraryclass Parse the contents of named fw_cfg files as simple\r
+ # (scalar) data types.\r
+ QemuFwCfgSimpleParserLib|Include/Library/QemuFwCfgSimpleParserLib.h\r
+\r
## @libraryclass Rewrite the BootOrder NvVar based on QEMU's "bootorder"\r
# fw_cfg file.\r
#\r
#\r
SerializeVariablesLib|Include/Library/SerializeVariablesLib.h\r
\r
+ ## @libraryclass Declares utility functions for virtio device drivers.\r
+ VirtioLib|Include/Library/VirtioLib.h\r
+\r
+ ## @libraryclass Install Virtio Device Protocol instances on virtio-mmio\r
+ # transports.\r
+ VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h\r
+\r
+ ## @libraryclass Provides a Nor flash interface.\r
+ #\r
+ VirtNorFlashPlatformLib|Include/Library/VirtNorFlashPlatformLib.h\r
+\r
## @libraryclass Invoke Xen hypercalls\r
#\r
XenHypercallLib|Include/Library/XenHypercallLib.h\r
#\r
XenPlatformLib|Include/Library/XenPlatformLib.h\r
\r
+ ## @libraryclass TdxMailboxLib\r
+ #\r
+ TdxMailboxLib|Include/Library/TdxMailboxLib.h\r
+\r
+ ## @libraryclass PlatformInitLib\r
+ #\r
+ PlatformInitLib|Include/Library/PlatformInitLib.h\r
+\r
+ ## @libraryclass PeilessStartupLib\r
+ #\r
+ PeilessStartupLib|Include/Library/PeilessStartupLib.h\r
+\r
+ ## @libraryclass HardwareInfoLib\r
+ #\r
+ HardwareInfoLib|Include/Library/HardwareInfoLib.h\r
+\r
[Guids]\r
gUefiOvmfPkgTokenSpaceGuid = {0x93bb96af, 0xb9f2, 0x4eb8, {0x94, 0x62, 0xe0, 0xba, 0x74, 0x56, 0x42, 0x36}}\r
gEfiXenInfoGuid = {0xd3b46f3b, 0xd441, 0x1244, {0x9a, 0x12, 0x0, 0x12, 0x27, 0x3f, 0xc1, 0x4d}}\r
gMicrosoftVendorGuid = {0x77fa9abd, 0x0359, 0x4d32, {0xbd, 0x60, 0x28, 0xf4, 0xe7, 0x8f, 0x78, 0x4b}}\r
gEfiLegacyBiosGuid = {0x2E3044AC, 0x879F, 0x490F, {0x97, 0x60, 0xBB, 0xDF, 0xAF, 0x69, 0x5F, 0x50}}\r
gEfiLegacyDevOrderVariableGuid = {0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52}}\r
- gLinuxEfiInitrdMediaGuid = {0x5568e427, 0x68fc, 0x4f3d, {0xac, 0x74, 0xca, 0x55, 0x52, 0x31, 0xcc, 0x68}}\r
gQemuKernelLoaderFsMediaGuid = {0x1428f772, 0xb64a, 0x441e, {0xb8, 0xc3, 0x9e, 0xbd, 0xd7, 0xf8, 0x93, 0xc7}}\r
+ gGrubFileGuid = {0xb5ae312c, 0xbc8a, 0x43b1, {0x9c, 0x62, 0xeb, 0xb8, 0x26, 0xdd, 0x5d, 0x07}}\r
+ gConfidentialComputingSecretGuid = {0xadf956ad, 0xe98c, 0x484c, {0xae, 0x11, 0xb5, 0x1c, 0x7d, 0x33, 0x64, 0x47}}\r
+ gConfidentialComputingSevSnpBlobGuid = {0x067b1f5f, 0xcf26, 0x44c5, {0x85, 0x54, 0x93, 0xd7, 0x77, 0x91, 0x2d, 0x42}}\r
+ gUefiOvmfPkgPlatformInfoGuid = {0xdec9b486, 0x1f16, 0x47c7, {0x8f, 0x68, 0xdf, 0x1a, 0x41, 0x88, 0x8b, 0xa5}}\r
+ gVMMBootOrderGuid = {0x668f4529, 0x63d0, 0x4bb5, {0xb6, 0x5d, 0x6f, 0xbb, 0x9d, 0x36, 0xa4, 0x4a}}\r
\r
[Ppis]\r
# PPI whose presence in the PPI database signals that the TPM base address\r
# has been discovered and recorded\r
gOvmfTpmDiscoveredPpiGuid = {0xb9a61ad0, 0x2802, 0x41f3, {0xb5, 0x13, 0x96, 0x51, 0xce, 0x6b, 0xd5, 0x75}}\r
\r
+ # This PPI signals that accessing the MMIO range of the TPM is possible in\r
+ # the PEI phase, regardless of memory encryption\r
+ gOvmfTpmMmioAccessiblePpiGuid = {0x35c84ff2, 0x7bfe, 0x453d, {0x84, 0x5f, 0x68, 0x3a, 0x49, 0x2c, 0xf7, 0xb7}}\r
+\r
+ gEfiPeiMpInitLibMpDepPpiGuid = {0x138f9cf4, 0xf0e7, 0x4721, { 0x8f, 0x49, 0xf5, 0xff, 0xec, 0xf4, 0x2d, 0x40}}\r
+ gEfiPeiMpInitLibUpDepPpiGuid = {0xb590774, 0xbc67, 0x49f4, { 0xa7, 0xdb, 0xe8, 0x2e, 0x89, 0xe6, 0xb5, 0xd6}}\r
+\r
[Protocols]\r
gVirtioDeviceProtocolGuid = {0xfa920010, 0x6785, 0x4941, {0xb6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}}\r
gXenBusProtocolGuid = {0x3d3ca290, 0xb9a5, 0x11e3, {0xb7, 0x5d, 0xb8, 0xac, 0x6f, 0x7d, 0x65, 0xe6}}\r
gEfiLegacyInterruptProtocolGuid = {0x31ce593d, 0x108a, 0x485d, {0xad, 0xb2, 0x78, 0xf2, 0x1f, 0x29, 0x66, 0xbe}}\r
gEfiVgaMiniPortProtocolGuid = {0xc7735a2f, 0x88f5, 0x4882, {0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3}}\r
gOvmfLoadedX86LinuxKernelProtocolGuid = {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}}\r
+ gQemuAcpiTableNotifyProtocolGuid = {0x928939b2, 0x4235, 0x462f, {0x95, 0x80, 0xf6, 0xa2, 0xb2, 0xc2, 0x1a, 0x4f}}\r
+ gEfiMpInitLibMpDepProtocolGuid = {0xbb00a5ca, 0x8ce, 0x462f, {0xa5, 0x37, 0x43, 0xc7, 0x4a, 0x82, 0x5c, 0xa4}}\r
+ gEfiMpInitLibUpDepProtocolGuid = {0xa9e7cef1, 0x5682, 0x42cc, {0xb1, 0x23, 0x99, 0x30, 0x97, 0x3f, 0x4a, 0x9f}}\r
\r
[PcdsFixedAtBuild]\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|0x0|UINT32|0\r
# polling loop iteration.\r
gUefiOvmfPkgTokenSpaceGuid.PcdPvScsiWaitForCmpStallInUsecs|5|UINT32|0x38\r
\r
+ ## Set the *inclusive* number of targets that MptScsi exposes for scan\r
+ # by ScsiBusDxe.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdMptScsiMaxTargetLimit|7|UINT8|0x39\r
+\r
+ ## Microseconds to stall between polling for MptScsi request result\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdMptScsiStallPerPollUsec|5|UINT32|0x3a\r
+\r
+ ## Set the *inclusive* number of targets and LUNs that LsiScsi exposes for\r
+ # scan by ScsiBusDxe.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiMaxTargetLimit|7|UINT8|0x3b\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiMaxLunLimit|0|UINT8|0x3c\r
+\r
+ ## Microseconds to stall between polling for LsiScsi request result\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiStallPerPollUsec|5|UINT32|0x3d\r
+\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase|0x0|UINT32|0x8\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize|0x0|UINT32|0x9\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize|0x0|UINT32|0xa\r
## Number of page frames to use for storing grant table entries.\r
gUefiOvmfPkgTokenSpaceGuid.PcdXenGrantFrames|4|UINT32|0x33\r
\r
+ ## Specify the extra page table needed to mark the GHCB as unencrypted.\r
+ # The value should be a multiple of 4KB for each.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableBase|0x0|UINT32|0x3e\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableSize|0x0|UINT32|0x3f\r
+\r
+ ## The base address of the SEC GHCB page used by SEV-ES.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase|0|UINT32|0x40\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbSize|0|UINT32|0x41\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupBase|0|UINT32|0x44\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupSize|0|UINT32|0x45\r
+\r
+ ## The base address and size of the SEV Launch Secret Area provisioned\r
+ # after remote attestation. If this is set in the .fdf, the platform\r
+ # is responsible for protecting the area from DXE phase overwrites.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase|0x0|UINT32|0x42\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize|0x0|UINT32|0x43\r
+\r
+ ## The base address and size of a hash table confirming allowed\r
+ # parameters to be passed in via the Qemu firmware configuration\r
+ # device\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuHashTableBase|0x0|UINT32|0x47\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdQemuHashTableSize|0x0|UINT32|0x48\r
+\r
+ ## The base address and size of the work area used during the SEC\r
+ # phase by the SEV and TDX supports.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase|0|UINT32|0x49\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaSize|0|UINT32|0x50\r
+\r
+ ## The work area contains a fixed size header in the Include/WorkArea.h.\r
+ # The size of this header is used early boot, and is provided through\r
+ # a fixed PCD. It need to be kept in sync with any changes to the\r
+ # header definition.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader|4|UINT32|0x51\r
+\r
+ ## The base address and size of the TDX Cfv base and size.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCfvBase|0|UINT32|0x52\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataOffset|0|UINT32|0x53\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataSize|0|UINT32|0x54\r
+\r
+ ## The base address and size of the TDX Bfv base and size.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdBfvBase|0|UINT32|0x55\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataOffset|0|UINT32|0x56\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataSize|0|UINT32|0x57\r
+\r
+ ## The base address and size of the SEV-SNP Secrets Area that contains\r
+ # the VM platform communication key used to send and recieve the\r
+ # messages to the PSP. If this is set in the .fdf, the platform\r
+ # is responsible to reserve this area from DXE phase overwrites.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsBase|0|UINT32|0x58\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsSize|0|UINT32|0x59\r
+\r
+ ## The base address and size of a CPUID Area that contains the hypervisor\r
+ # provided CPUID results. In the case of SEV-SNP, the CPUID results are\r
+ # filtered by the SEV-SNP firmware. If this is set in the .fdf, the\r
+ # platform is responsible to reserve this area from DXE phase overwrites.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidBase|0|UINT32|0x60\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidSize|0|UINT32|0x61\r
+\r
+ ## The range of memory that is validated by the SEC phase.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedStart|0|UINT32|0x62\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedEnd|0|UINT32|0x63\r
+\r
+ ## The Tdx accept page size. 0x1000(4k),0x200000(2M)\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdTdxAcceptPageSize|0x200000|UINT32|0x65\r
+\r
+ ## The QEMU fw_cfg variable that UefiDriverEntryPointFwCfgOverrideLib will\r
+ # check to decide whether to abort dispatch of the driver it is linked into.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|""|VOID*|0x68\r
+\r
[PcdsDynamic, PcdsDynamicEx]\r
gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2\r
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10\r
# This PCD is only accessed if PcdSmmSmramRequire is TRUE (see below).\r
gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE|BOOLEAN|0x34\r
\r
+ ## This PCD adds a communication channel between OVMF's SmmCpuFeaturesLib\r
+ # instance in PiSmmCpuDxeSmm, and CpuHotplugSmm.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCpuHotEjectDataAddress|0|UINT64|0x46\r
+\r
+ ## This PCD tracks where PcdVideo{Horizontal,Vertical}Resolution\r
+ # values are coming from.\r
+ # 0 - unset (defaults from platform dsc)\r
+ # 1 - set from PlatformConfig\r
+ # 2 - set by GOP Driver.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0|UINT8|0x64\r
+\r
+ ## This PCD records LAML field in CC EVENTLOG ACPI table.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCcEventlogAcpiTableLaml|0|UINT32|0x66\r
+\r
+ ## This PCD records LASA field in CC EVENTLOG ACPI table.\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdCcEventlogAcpiTableLasa|0|UINT64|0x67\r
+\r
[PcdsFeatureFlag]\r
gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE|BOOLEAN|0x1c\r
gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|FALSE|BOOLEAN|0x1d\r