Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx
- Timestamp:
- Aug 14, 2024 1:16:30 PM (8 months ago)
- svn:sync-xref-src-repo-rev:
- 164367
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 1 added
- 1 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/IntelTdxX64.dsc
r101291 r105670 172 172 PeiHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/PeiHardwareInfoLib.inf 173 173 DxeHardwareInfoLib|OvmfPkg/Library/HardwareInfoLib/DxeHardwareInfoLib.inf 174 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf 174 175 175 176 LockBoxLib|OvmfPkg/Library/LockBoxLib/LockBoxBaseLib.inf … … 185 186 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf 186 187 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf 187 RngLib|Mde Pkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf188 RngLib|MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf 188 189 189 190 !if $(SECURE_BOOT_ENABLE) == TRUE … … 201 202 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf 202 203 203 !if $(BUILD_SHELL) == TRUE204 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf205 !endif206 204 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf 207 205 S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf … … 212 210 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf 213 211 212 !include OvmfPkg/Include/Dsc/ShellLibs.dsc.inc 213 214 214 [LibraryClasses.common] 215 AmdSvsmLib|UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf 215 216 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf 216 217 CcExitLib|OvmfPkg/Library/CcExitLib/CcExitLib.inf … … 376 377 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE 377 378 gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE 378 !ifdef $(CSM_ENABLE)379 gUefiOvmfPkgTokenSpaceGuid.PcdCsmEnable|TRUE380 !endif381 379 !if $(SECURE_BOOT_ENABLE) == TRUE 382 380 gUefiOvmfPkgTokenSpaceGuid.PcdSecureBootSupported|TRUE … … 458 456 gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000 459 457 460 # IRQs 5, 9, 10, 11 are level-triggered461 gUefiOvmfPkgTokenSpaceGuid.Pcd8259LegacyModeEdgeLevel|0x0E20462 463 458 # Point to the MdeModulePkg/Application/UiApp/UiApp.inf 464 459 gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 } 460 461 # 462 # PcdFirstTimeWakeUpAPsBySipi determines whether to employ 463 # SIPI instead of the INIT-SIPI-SIPI sequence during APs 464 # initialization. Deactivate this parameter to preserve 465 # the original execution of INIT-SIPI-SIPI. 466 # 467 gUefiCpuPkgTokenSpaceGuid.PcdFirstTimeWakeUpAPsBySipi|FALSE 465 468 466 469 ################################################################################ … … 675 678 MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf 676 679 MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf 677 MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf 678 679 !ifndef $(CSM_ENABLE) 680 680 681 OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf 681 !endif682 682 OvmfPkg/QemuRamfbDxe/QemuRamfbDxe.inf 683 683 OvmfPkg/VirtioGpuDxe/VirtioGpu.inf … … 718 718 MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf 719 719 720 !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE 721 OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf { 722 <PcdsFixedAtBuild> 723 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE 724 } 725 !endif 726 !if $(BUILD_SHELL) == TRUE 727 ShellPkg/Application/Shell/Shell.inf { 728 <LibraryClasses> 729 ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf 730 NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf 731 NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf 732 NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf 733 NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf 734 NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf 735 NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf 736 HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf 737 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf 738 BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf 739 740 <PcdsFixedAtBuild> 741 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF 742 gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE 743 gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000 744 } 745 !endif 720 !include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc 746 721 747 722 !if $(SECURE_BOOT_ENABLE) == TRUE … … 772 747 # Cc Measurement Protocol for Td guest 773 748 # 774 SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {775 <LibraryClasses> 776 HashLib| SecurityPkg/Library/HashLibTdx/HashLibTdx.inf749 OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf { 750 <LibraryClasses> 751 HashLib|OvmfPkg/Library/HashLibTdx/HashLibTdx.inf 777 752 NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf 778 753 } -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/IntelTdxX64.fdf
r101291 r105670 256 256 # EFI_CC_MEASUREMENT_PROTOCOL 257 257 # 258 INF SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf258 INF OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf 259 259 260 260 ################################################################################ … … 301 301 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf 302 302 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf 303 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf304 303 INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf 305 304 INF MdeModulePkg/Universal/Acpi/S3SaveStateDxe/S3SaveStateDxe.inf … … 309 308 INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf 310 309 311 !if $(BUILD_SHELL) == TRUE && $(TOOL_CHAIN_TAG) != "XCODE5"312 INF OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf313 !endif314 !if $(BUILD_SHELL) == TRUE315 INF ShellPkg/Application/Shell/Shell.inf316 !endif317 318 310 INF MdeModulePkg/Logo/LogoDxe.inf 319 311 … … 333 325 INF OvmfPkg/VirtioGpuDxe/VirtioGpu.inf 334 326 INF OvmfPkg/PlatformDxe/Platform.inf 327 328 !include OvmfPkg/Include/Fdf/ShellDxe.fdf.inc 335 329 336 330 ################################################################################ … … 433 427 } 434 428 435 [Rule.Common.USER_DEFINED.CSM]436 FILE FREEFORM = $(NAMED_GUID) {437 RAW BIN |.bin438 }439 440 429 [Rule.Common.SEC.RESET_VECTOR] 441 430 FILE RAW = $(NAMED_GUID) { -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/Sec/SecMain.c
r101291 r105670 12 12 #include <PiPei.h> 13 13 14 #include <Library/PeimEntryPoint.h>15 14 #include <Library/BaseLib.h> 16 15 #include <Library/DebugLib.h> … … 126 125 IdtDescriptor.Limit = (UINT16)(sizeof (IdtTableInStack.IdtTable) - 1); 127 126 128 ProcessLibraryConstructorList ( NULL, NULL);127 ProcessLibraryConstructorList (); 129 128 130 129 // -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/Sec/SecMain.inf
r101291 r105670 9 9 10 10 [Defines] 11 INF_VERSION = 0x0001000511 INF_VERSION = 1.30 12 12 BASE_NAME = SecMain 13 13 FILE_GUID = 69d96630-eb64-4b33-8491-13a5cf023dcf -
trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c
r99404 r105670 20 20 #include <Library/TdxMailboxLib.h> 21 21 #include <Library/SynchronizationLib.h> 22 #include <Pi/P rePiHob.h>22 #include <Pi/PiHob.h> 23 23 #include <WorkArea.h> 24 24 #include <ConfidentialComputingGuestAttr.h> … … 352 352 DEBUG ((DEBUG_INFO, "\nResourceType: 0x%x\n", Hob.ResourceDescriptor->ResourceType)); 353 353 354 if (Hob.ResourceDescriptor->ResourceType == BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED) {354 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_UNACCEPTED) { 355 355 ResourceLength = Hob.ResourceDescriptor->ResourceLength; 356 356 PhysicalStart = Hob.ResourceDescriptor->PhysicalStart; … … 428 428 while (!END_OF_HOB_LIST (Hob)) { 429 429 if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) { 430 if (Hob.ResourceDescriptor->ResourceType == BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED) {430 if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_UNACCEPTED) { 431 431 PhysicalStart = Hob.ResourceDescriptor->PhysicalStart; 432 432 PhysicalEnd = PhysicalStart + Hob.ResourceDescriptor->ResourceLength; … … 564 564 EFI_RESOURCE_MEMORY_RESERVED, 565 565 EFI_RESOURCE_IO_RESERVED, 566 BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED566 EFI_RESOURCE_MEMORY_UNACCEPTED 567 567 }; 568 568
Note:
See TracChangeset
for help on using the changeset viewer.