OvmfPkg.dec 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. ## @file
  2. # EFI/Framework Open Virtual Machine Firmware (OVMF) platform
  3. #
  4. # Copyright (c) 2020, Rebecca Cran <rebecca@bsdio.com>
  5. # Copyright (c) 2006 - 2019, Intel Corporation. All rights reserved.<BR>
  6. # Copyright (c) 2014, Pluribus Networks, Inc.
  7. #
  8. # SPDX-License-Identifier: BSD-2-Clause-Patent
  9. #
  10. ##
  11. [Defines]
  12. DEC_SPECIFICATION = 0x00010005
  13. PACKAGE_NAME = OvmfPkg
  14. PACKAGE_GUID = 2daf5f34-50e5-4b9d-b8e3-5562334d87e5
  15. PACKAGE_VERSION = 0.1
  16. [Includes]
  17. Include
  18. Csm/Include
  19. [LibraryClasses]
  20. ## @libraryclass Access bhyve's firmware control interface.
  21. BhyveFwCtlLib|Include/Library/BhyveFwCtlLib.h
  22. ## @libraryclass Verify blobs read from the VMM
  23. BlobVerifierLib|Include/Library/BlobVerifierLib.h
  24. ## @libraryclass Loads and boots a Linux kernel image
  25. #
  26. LoadLinuxLib|Include/Library/LoadLinuxLib.h
  27. ## @libraryclass Declares helper functions for Secure Encrypted
  28. # Virtualization (SEV) guests.
  29. MemEncryptSevLib|Include/Library/MemEncryptSevLib.h
  30. ## @libraryclass Save and restore variables using a file
  31. #
  32. NvVarsFileLib|Include/Library/NvVarsFileLib.h
  33. ## @libraryclass Provides services to work with PCI capabilities in PCI
  34. # config space.
  35. PciCapLib|Include/Library/PciCapLib.h
  36. ## @libraryclass Layered on top of PciCapLib, allows clients to plug an
  37. # EFI_PCI_IO_PROTOCOL backend into PciCapLib, for config
  38. # space access.
  39. PciCapPciIoLib|Include/Library/PciCapPciIoLib.h
  40. ## @libraryclass Layered on top of PciCapLib, allows clients to plug a
  41. # PciSegmentLib backend into PciCapLib, for config space
  42. # access.
  43. PciCapPciSegmentLib|Include/Library/PciCapPciSegmentLib.h
  44. ## @libraryclass Provide common utility functions to PciHostBridgeLib
  45. # instances in ArmVirtPkg and OvmfPkg.
  46. PciHostBridgeUtilityLib|Include/Library/PciHostBridgeUtilityLib.h
  47. ## @libraryclass Register a status code handler for printing the Boot
  48. # Manager's LoadImage() and StartImage() preparations, and
  49. # return codes, to the UEFI console.
  50. PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h
  51. ## @libraryclass Customize FVB2 protocol member functions for a platform.
  52. PlatformFvbLib|Include/Library/PlatformFvbLib.h
  53. ## @libraryclass Access QEMU's firmware configuration interface
  54. #
  55. QemuFwCfgLib|Include/Library/QemuFwCfgLib.h
  56. ## @libraryclass S3 support for QEMU fw_cfg
  57. #
  58. QemuFwCfgS3Lib|Include/Library/QemuFwCfgS3Lib.h
  59. ## @libraryclass Parse the contents of named fw_cfg files as simple
  60. # (scalar) data types.
  61. QemuFwCfgSimpleParserLib|Include/Library/QemuFwCfgSimpleParserLib.h
  62. ## @libraryclass Rewrite the BootOrder NvVar based on QEMU's "bootorder"
  63. # fw_cfg file.
  64. #
  65. QemuBootOrderLib|Include/Library/QemuBootOrderLib.h
  66. ## @libraryclass Load a kernel image and command line passed to QEMU via
  67. # the command line
  68. #
  69. QemuLoadImageLib|Include/Library/QemuLoadImageLib.h
  70. ## @libraryclass Serialize (and deserialize) variables
  71. #
  72. SerializeVariablesLib|Include/Library/SerializeVariablesLib.h
  73. ## @libraryclass Declares utility functions for virtio device drivers.
  74. VirtioLib|Include/Library/VirtioLib.h
  75. ## @libraryclass Install Virtio Device Protocol instances on virtio-mmio
  76. # transports.
  77. VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
  78. ## @libraryclass Invoke Xen hypercalls
  79. #
  80. XenHypercallLib|Include/Library/XenHypercallLib.h
  81. ## @libraryclass Manage XenBus device path and I/O handles
  82. #
  83. XenIoMmioLib|Include/Library/XenIoMmioLib.h
  84. ## @libraryclass Get information about Xen
  85. #
  86. XenPlatformLib|Include/Library/XenPlatformLib.h
  87. [Guids]
  88. gUefiOvmfPkgTokenSpaceGuid = {0x93bb96af, 0xb9f2, 0x4eb8, {0x94, 0x62, 0xe0, 0xba, 0x74, 0x56, 0x42, 0x36}}
  89. gEfiXenInfoGuid = {0xd3b46f3b, 0xd441, 0x1244, {0x9a, 0x12, 0x0, 0x12, 0x27, 0x3f, 0xc1, 0x4d}}
  90. gOvmfPkKek1AppPrefixGuid = {0x4e32566d, 0x8e9e, 0x4f52, {0x81, 0xd3, 0x5b, 0xb9, 0x71, 0x5f, 0x97, 0x27}}
  91. gOvmfPlatformConfigGuid = {0x7235c51c, 0x0c80, 0x4cab, {0x87, 0xac, 0x3b, 0x08, 0x4a, 0x63, 0x04, 0xb1}}
  92. gVirtioMmioTransportGuid = {0x837dca9e, 0xe874, 0x4d82, {0xb2, 0x9a, 0x23, 0xfe, 0x0e, 0x23, 0xd1, 0xe2}}
  93. gQemuRamfbGuid = {0x557423a1, 0x63ab, 0x406c, {0xbe, 0x7e, 0x91, 0xcd, 0xbc, 0x08, 0xc4, 0x57}}
  94. gXenBusRootDeviceGuid = {0xa732241f, 0x383d, 0x4d9c, {0x8a, 0xe1, 0x8e, 0x09, 0x83, 0x75, 0x89, 0xd7}}
  95. gRootBridgesConnectedEventGroupGuid = {0x24a2d66f, 0xeedd, 0x4086, {0x90, 0x42, 0xf2, 0x6e, 0x47, 0x97, 0xee, 0x69}}
  96. gMicrosoftVendorGuid = {0x77fa9abd, 0x0359, 0x4d32, {0xbd, 0x60, 0x28, 0xf4, 0xe7, 0x8f, 0x78, 0x4b}}
  97. gEfiLegacyBiosGuid = {0x2E3044AC, 0x879F, 0x490F, {0x97, 0x60, 0xBB, 0xDF, 0xAF, 0x69, 0x5F, 0x50}}
  98. gEfiLegacyDevOrderVariableGuid = {0xa56074db, 0x65fe, 0x45f7, {0xbd, 0x21, 0x2d, 0x2b, 0xdd, 0x8e, 0x96, 0x52}}
  99. gQemuKernelLoaderFsMediaGuid = {0x1428f772, 0xb64a, 0x441e, {0xb8, 0xc3, 0x9e, 0xbd, 0xd7, 0xf8, 0x93, 0xc7}}
  100. gGrubFileGuid = {0xb5ae312c, 0xbc8a, 0x43b1, {0x9c, 0x62, 0xeb, 0xb8, 0x26, 0xdd, 0x5d, 0x07}}
  101. gConfidentialComputingSecretGuid = {0xadf956ad, 0xe98c, 0x484c, {0xae, 0x11, 0xb5, 0x1c, 0x7d, 0x33, 0x64, 0x47}}
  102. gConfidentialComputingSevSnpBlobGuid = {0x067b1f5f, 0xcf26, 0x44c5, {0x85, 0x54, 0x93, 0xd7, 0x77, 0x91, 0x2d, 0x42}}
  103. [Ppis]
  104. # PPI whose presence in the PPI database signals that the TPM base address
  105. # has been discovered and recorded
  106. gOvmfTpmDiscoveredPpiGuid = {0xb9a61ad0, 0x2802, 0x41f3, {0xb5, 0x13, 0x96, 0x51, 0xce, 0x6b, 0xd5, 0x75}}
  107. # This PPI signals that accessing the MMIO range of the TPM is possible in
  108. # the PEI phase, regardless of memory encryption
  109. gOvmfTpmMmioAccessiblePpiGuid = {0x35c84ff2, 0x7bfe, 0x453d, {0x84, 0x5f, 0x68, 0x3a, 0x49, 0x2c, 0xf7, 0xb7}}
  110. [Protocols]
  111. gVirtioDeviceProtocolGuid = {0xfa920010, 0x6785, 0x4941, {0xb6, 0xec, 0x49, 0x8c, 0x57, 0x9f, 0x16, 0x0a}}
  112. gXenBusProtocolGuid = {0x3d3ca290, 0xb9a5, 0x11e3, {0xb7, 0x5d, 0xb8, 0xac, 0x6f, 0x7d, 0x65, 0xe6}}
  113. gXenIoProtocolGuid = {0x6efac84f, 0x0ab0, 0x4747, {0x81, 0xbe, 0x85, 0x55, 0x62, 0x59, 0x04, 0x49}}
  114. gIoMmuAbsentProtocolGuid = {0xf8775d50, 0x8abd, 0x4adf, {0x92, 0xac, 0x85, 0x3e, 0x51, 0xf6, 0xc8, 0xdc}}
  115. gEfiLegacy8259ProtocolGuid = {0x38321dba, 0x4fe0, 0x4e17, {0x8a, 0xec, 0x41, 0x30, 0x55, 0xea, 0xed, 0xc1}}
  116. gEfiFirmwareVolumeProtocolGuid = {0x389F751F, 0x1838, 0x4388, {0x83, 0x90, 0xcd, 0x81, 0x54, 0xbd, 0x27, 0xf8}}
  117. gEfiIsaAcpiProtocolGuid = {0x64a892dc, 0x5561, 0x4536, {0x92, 0xc7, 0x79, 0x9b, 0xfc, 0x18, 0x33, 0x55}}
  118. gEfiIsaIoProtocolGuid = {0x7ee2bd44, 0x3da0, 0x11d4, {0x9a, 0x38, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d}}
  119. gEfiLegacyBiosProtocolGuid = {0xdb9a1e3d, 0x45cb, 0x4abb, {0x85, 0x3b, 0xe5, 0x38, 0x7f, 0xdb, 0x2e, 0x2d}}
  120. gEfiLegacyBiosPlatformProtocolGuid = {0x783658a3, 0x4172, 0x4421, {0xa2, 0x99, 0xe0, 0x09, 0x07, 0x9c, 0x0c, 0xb4}}
  121. gEfiLegacyInterruptProtocolGuid = {0x31ce593d, 0x108a, 0x485d, {0xad, 0xb2, 0x78, 0xf2, 0x1f, 0x29, 0x66, 0xbe}}
  122. gEfiVgaMiniPortProtocolGuid = {0xc7735a2f, 0x88f5, 0x4882, {0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3}}
  123. gOvmfLoadedX86LinuxKernelProtocolGuid = {0xa3edc05d, 0xb618, 0x4ff6, {0x95, 0x52, 0x76, 0xd7, 0x88, 0x63, 0x43, 0xc8}}
  124. [PcdsFixedAtBuild]
  125. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase|0x0|UINT32|0
  126. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvSize|0x0|UINT32|1
  127. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvBase|0x0|UINT32|0x15
  128. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDxeMemFvSize|0x0|UINT32|0x16
  129. ## This flag is used to control the destination port for PlatformDebugLibIoPort
  130. gUefiOvmfPkgTokenSpaceGuid.PcdDebugIoPort|0x402|UINT16|4
  131. ## When VirtioScsiDxe is instantiated for a HBA, the numbers of targets and
  132. # LUNs are retrieved from the host during virtio-scsi setup.
  133. # MdeModulePkg/Bus/Scsi/ScsiBusDxe then scans all MaxTarget * MaxLun
  134. # possible devices. This can take extremely long, for example with
  135. # MaxTarget=255 and MaxLun=16383. The *inclusive* constants below limit
  136. # MaxTarget and MaxLun, independently, should the host report higher values,
  137. # so that scanning the number of devices given by their product is still
  138. # acceptably fast.
  139. gUefiOvmfPkgTokenSpaceGuid.PcdVirtioScsiMaxTargetLimit|31|UINT16|6
  140. gUefiOvmfPkgTokenSpaceGuid.PcdVirtioScsiMaxLunLimit|7|UINT32|7
  141. ## Sets the *inclusive* number of targets and LUNs that PvScsi exposes for
  142. # scan by ScsiBusDxe.
  143. # As specified above for VirtioScsi, ScsiBusDxe scans all MaxTarget * MaxLun
  144. # possible devices, which can take extremely long. Thus, the below constants
  145. # are used so that scanning the number of devices given by their product
  146. # is still acceptably fast.
  147. gUefiOvmfPkgTokenSpaceGuid.PcdPvScsiMaxTargetLimit|64|UINT8|0x36
  148. gUefiOvmfPkgTokenSpaceGuid.PcdPvScsiMaxLunLimit|0|UINT8|0x37
  149. ## After PvScsiDxe sends a SCSI request to the device, it waits for
  150. # the request completion in a polling loop.
  151. # This constant defines how many micro-seconds to wait between each
  152. # polling loop iteration.
  153. gUefiOvmfPkgTokenSpaceGuid.PcdPvScsiWaitForCmpStallInUsecs|5|UINT32|0x38
  154. ## Set the *inclusive* number of targets that MptScsi exposes for scan
  155. # by ScsiBusDxe.
  156. gUefiOvmfPkgTokenSpaceGuid.PcdMptScsiMaxTargetLimit|7|UINT8|0x39
  157. ## Microseconds to stall between polling for MptScsi request result
  158. gUefiOvmfPkgTokenSpaceGuid.PcdMptScsiStallPerPollUsec|5|UINT32|0x3a
  159. ## Set the *inclusive* number of targets and LUNs that LsiScsi exposes for
  160. # scan by ScsiBusDxe.
  161. gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiMaxTargetLimit|7|UINT8|0x3b
  162. gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiMaxLunLimit|0|UINT8|0x3c
  163. ## Microseconds to stall between polling for LsiScsi request result
  164. gUefiOvmfPkgTokenSpaceGuid.PcdLsiScsiStallPerPollUsec|5|UINT32|0x3d
  165. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogBase|0x0|UINT32|0x8
  166. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageEventLogSize|0x0|UINT32|0x9
  167. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareFdSize|0x0|UINT32|0xa
  168. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFirmwareBlockSize|0|UINT32|0xb
  169. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageVariableBase|0x0|UINT32|0xc
  170. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwSpareBase|0x0|UINT32|0xd
  171. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashNvStorageFtwWorkingBase|0x0|UINT32|0xe
  172. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFdBaseAddress|0x0|UINT32|0xf
  173. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase|0x0|UINT32|0x11
  174. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize|0x0|UINT32|0x12
  175. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|0x0|UINT32|0x13
  176. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize|0x0|UINT32|0x14
  177. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase|0x0|UINT32|0x18
  178. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize|0x0|UINT32|0x19
  179. gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize|0x0|UINT32|0x1a
  180. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfDecompressionScratchEnd|0x0|UINT32|0x1f
  181. ## Pcd8259LegacyModeMask defines the default mask value for platform. This
  182. # value is determined.
  183. # 1) If platform only support pure UEFI, value should be set to 0xFFFF or
  184. # 0xFFFE; Because only clock interrupt is allowed in legacy mode in pure
  185. # UEFI platform.
  186. # 2) If platform install CSM and use thunk module:
  187. # a) If thunk call provided by CSM binary requires some legacy interrupt
  188. # support, the corresponding bit should be opened as 0.
  189. # For example, if keyboard interfaces provided CSM binary use legacy
  190. # keyboard interrupt in 8259 bit 1, then the value should be set to
  191. # 0xFFFC.
  192. # b) If all thunk call provied by CSM binary do not require legacy
  193. # interrupt support, value should be set to 0xFFFF or 0xFFFE.
  194. #
  195. # The default value of legacy mode mask could be changed by
  196. # EFI_LEGACY_8259_PROTOCOL->SetMask(). But it is rarely need change it
  197. # except some special cases such as when initializing the CSM binary, it
  198. # should be set to 0xFFFF to mask all legacy interrupt. Please restore the
  199. # original legacy mask value if changing is made for these special case.
  200. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeMask|0xFFFF|UINT16|0x3
  201. ## Pcd8259LegacyModeEdgeLevel defines the default edge level for legacy
  202. # mode's interrrupt controller.
  203. # For the corresponding bits, 0 = Edge triggered and 1 = Level triggered.
  204. gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0000|UINT16|0x5
  205. ## Indicates if BiosVideo driver will switch to 80x25 Text VGA Mode when
  206. # exiting boot service.
  207. # TRUE - Switch to Text VGA Mode.
  208. # FALSE - Does not switch to Text VGA Mode.
  209. gUefiOvmfPkgTokenSpaceGuid.PcdBiosVideoSetTextVgaModeEnable|FALSE|BOOLEAN|0x28
  210. ## Indicates if BiosVideo driver will check for VESA BIOS Extension service
  211. # support.
  212. # TRUE - Check for VESA BIOS Extension service.
  213. # FALSE - Does not check for VESA BIOS Extension service.
  214. gUefiOvmfPkgTokenSpaceGuid.PcdBiosVideoCheckVbeEnable|TRUE|BOOLEAN|0x29
  215. ## Indicates if BiosVideo driver will check for VGA service support.
  216. # NOTE: If both PcdBiosVideoCheckVbeEnable and PcdBiosVideoCheckVgaEnable
  217. # are set to FALSE, that means Graphics Output protocol will not be
  218. # installed, the VGA miniport protocol will be installed instead.
  219. # TRUE - Check for VGA service.<BR>
  220. # FALSE - Does not check for VGA service.<BR>
  221. gUefiOvmfPkgTokenSpaceGuid.PcdBiosVideoCheckVgaEnable|TRUE|BOOLEAN|0x2a
  222. ## Indicates if memory space for legacy region will be set as cacheable.
  223. # TRUE - Set cachebility for legacy region.
  224. # FALSE - Does not set cachebility for legacy region.
  225. gUefiOvmfPkgTokenSpaceGuid.PcdLegacyBiosCacheLegacyRegion|TRUE|BOOLEAN|0x2b
  226. ## Specify memory size with bytes to reserve EBDA below 640K for OPROM.
  227. # The value should be a multiple of 4KB.
  228. gUefiOvmfPkgTokenSpaceGuid.PcdEbdaReservedMemorySize|0x8000|UINT32|0x2c
  229. ## Specify memory base address for OPROM to find free memory.
  230. # Some OPROMs do not use EBDA or PMM to allocate memory for its usage,
  231. # instead they find the memory filled with zero from 0x20000.
  232. # The value should be a multiple of 4KB.
  233. # The range should be below the EBDA reserved range from
  234. # (CONVENTIONAL_MEMORY_TOP - Reserved EBDA Memory Size) to
  235. # CONVENTIONAL_MEMORY_TOP.
  236. gUefiOvmfPkgTokenSpaceGuid.PcdOpromReservedMemoryBase|0x60000|UINT32|0x2d
  237. ## Specify memory size with bytes for OPROM to find free memory.
  238. # The value should be a multiple of 4KB. And the range should be below the
  239. # EBDA reserved range from
  240. # (CONVENTIONAL_MEMORY_TOP - Reserved EBDA Memory Size) to
  241. # CONVENTIONAL_MEMORY_TOP.
  242. gUefiOvmfPkgTokenSpaceGuid.PcdOpromReservedMemorySize|0x28000|UINT32|0x2e
  243. ## Specify the end of address below 1MB for the OPROM.
  244. # The last shadowed OpROM should not exceed this address.
  245. gUefiOvmfPkgTokenSpaceGuid.PcdEndOpromShadowAddress|0xdffff|UINT32|0x2f
  246. ## Specify the low PMM (Post Memory Manager) size with bytes below 1MB.
  247. # The value should be a multiple of 4KB.
  248. # @Prompt Low PMM (Post Memory Manager) Size
  249. gUefiOvmfPkgTokenSpaceGuid.PcdLowPmmMemorySize|0x10000|UINT32|0x30
  250. ## Specify the high PMM (Post Memory Manager) size with bytes above 1MB.
  251. # The value should be a multiple of 4KB.
  252. gUefiOvmfPkgTokenSpaceGuid.PcdHighPmmMemorySize|0x400000|UINT32|0x31
  253. gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtr|0x0|UINT32|0x17
  254. gUefiOvmfPkgTokenSpaceGuid.PcdXenPvhStartOfDayStructPtrSize|0x0|UINT32|0x32
  255. ## Number of page frames to use for storing grant table entries.
  256. gUefiOvmfPkgTokenSpaceGuid.PcdXenGrantFrames|4|UINT32|0x33
  257. ## Specify the extra page table needed to mark the GHCB as unencrypted.
  258. # The value should be a multiple of 4KB for each.
  259. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableBase|0x0|UINT32|0x3e
  260. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableSize|0x0|UINT32|0x3f
  261. ## The base address of the SEC GHCB page used by SEV-ES.
  262. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase|0|UINT32|0x40
  263. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbSize|0|UINT32|0x41
  264. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupBase|0|UINT32|0x44
  265. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupSize|0|UINT32|0x45
  266. ## The base address and size of the SEV Launch Secret Area provisioned
  267. # after remote attestation. If this is set in the .fdf, the platform
  268. # is responsible for protecting the area from DXE phase overwrites.
  269. gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase|0x0|UINT32|0x42
  270. gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize|0x0|UINT32|0x43
  271. ## The base address and size of a hash table confirming allowed
  272. # parameters to be passed in via the Qemu firmware configuration
  273. # device
  274. gUefiOvmfPkgTokenSpaceGuid.PcdQemuHashTableBase|0x0|UINT32|0x47
  275. gUefiOvmfPkgTokenSpaceGuid.PcdQemuHashTableSize|0x0|UINT32|0x48
  276. ## The base address and size of the work area used during the SEC
  277. # phase by the SEV and TDX supports.
  278. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase|0|UINT32|0x49
  279. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaSize|0|UINT32|0x50
  280. ## The work area contains a fixed size header in the Include/WorkArea.h.
  281. # The size of this header is used early boot, and is provided through
  282. # a fixed PCD. It need to be kept in sync with any changes to the
  283. # header definition.
  284. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader|4|UINT32|0x51
  285. ## The base address and size of the TDX Cfv base and size.
  286. gUefiOvmfPkgTokenSpaceGuid.PcdCfvBase|0|UINT32|0x52
  287. gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataOffset|0|UINT32|0x53
  288. gUefiOvmfPkgTokenSpaceGuid.PcdCfvRawDataSize|0|UINT32|0x54
  289. ## The base address and size of the TDX Bfv base and size.
  290. gUefiOvmfPkgTokenSpaceGuid.PcdBfvBase|0|UINT32|0x55
  291. gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataOffset|0|UINT32|0x56
  292. gUefiOvmfPkgTokenSpaceGuid.PcdBfvRawDataSize|0|UINT32|0x57
  293. ## The base address and size of the SEV-SNP Secrets Area that contains
  294. # the VM platform communication key used to send and recieve the
  295. # messages to the PSP. If this is set in the .fdf, the platform
  296. # is responsible to reserve this area from DXE phase overwrites.
  297. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsBase|0|UINT32|0x58
  298. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSnpSecretsSize|0|UINT32|0x59
  299. ## The base address and size of a CPUID Area that contains the hypervisor
  300. # provided CPUID results. In the case of SEV-SNP, the CPUID results are
  301. # filtered by the SEV-SNP firmware. If this is set in the .fdf, the
  302. # platform is responsible to reserve this area from DXE phase overwrites.
  303. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidBase|0|UINT32|0x60
  304. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidSize|0|UINT32|0x61
  305. ## The range of memory that is validated by the SEC phase.
  306. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedStart|0|UINT32|0x62
  307. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedEnd|0|UINT32|0x63
  308. [PcdsDynamic, PcdsDynamicEx]
  309. gUefiOvmfPkgTokenSpaceGuid.PcdEmuVariableEvent|0|UINT64|2
  310. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfFlashVariablesEnable|FALSE|BOOLEAN|0x10
  311. gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0|UINT16|0x1b
  312. gUefiOvmfPkgTokenSpaceGuid.PcdQemuSmbiosValidated|FALSE|BOOLEAN|0x21
  313. ## The IO port aperture shared by all PCI root bridges.
  314. #
  315. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0|UINT64|0x22
  316. gUefiOvmfPkgTokenSpaceGuid.PcdPciIoSize|0x0|UINT64|0x23
  317. ## The 32-bit MMIO aperture shared by all PCI root bridges.
  318. #
  319. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Base|0x0|UINT64|0x24
  320. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio32Size|0x0|UINT64|0x25
  321. ## The 64-bit MMIO aperture shared by all PCI root bridges.
  322. #
  323. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Base|0x0|UINT64|0x26
  324. gUefiOvmfPkgTokenSpaceGuid.PcdPciMmio64Size|0x0|UINT64|0x27
  325. ## The following setting controls how many megabytes we configure as TSEG on
  326. # Q35, for SMRAM purposes. Permitted defaults are: 1, 2, 8. Other defaults
  327. # cause undefined behavior. During boot, the PCD is updated by PlatformPei
  328. # to reflect the extended TSEG size, if one is advertized by QEMU.
  329. #
  330. # This PCD is only accessed if PcdSmmSmramRequire is TRUE (see below).
  331. gUefiOvmfPkgTokenSpaceGuid.PcdQ35TsegMbytes|8|UINT16|0x20
  332. ## Set to TRUE by PlatformPei if the Q35 board supports the "SMRAM at default
  333. # SMBASE" feature.
  334. #
  335. # This PCD is only accessed if PcdSmmSmramRequire is TRUE (see below).
  336. gUefiOvmfPkgTokenSpaceGuid.PcdQ35SmramAtDefaultSmbase|FALSE|BOOLEAN|0x34
  337. ## This PCD adds a communication channel between OVMF's SmmCpuFeaturesLib
  338. # instance in PiSmmCpuDxeSmm, and CpuHotplugSmm.
  339. gUefiOvmfPkgTokenSpaceGuid.PcdCpuHotEjectDataAddress|0|UINT64|0x46
  340. [PcdsFeatureFlag]
  341. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderPciTranslation|TRUE|BOOLEAN|0x1c
  342. gUefiOvmfPkgTokenSpaceGuid.PcdQemuBootOrderMmioTranslation|FALSE|BOOLEAN|0x1d
  343. ## This feature flag enables SMM/SMRAM support. Note that it also requires
  344. # such support from the underlying QEMU instance; if that support is not
  345. # present, the firmware will reject continuing after a certain point.
  346. #
  347. # The flag also acts as a general "security switch"; when TRUE, many
  348. # components will change behavior, with the goal of preventing a malicious
  349. # runtime OS from tampering with firmware structures (special memory ranges
  350. # used by OVMF, the varstore pflash chip, LockBox etc).
  351. gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire|FALSE|BOOLEAN|0x1e
  352. ## Informs modules (including pre-DXE-phase modules) whether the platform
  353. # firmware contains a CSM (Compatibility Support Module).
  354. #
  355. gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|FALSE|BOOLEAN|0x35