SEV needs an area to place an injected secret where OVMF can find it and pass it up as a ConfigurationTable. This patch implements the area itself as an addition to the SEV enhanced reset vector table using an additional guid (4c2eb361-7d9b-4cc3-8081-127c90d3d294). Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3077 Signed-off-by: James Bottomley <jejb@linux.ibm.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20201130202819.3910-5-jejb@linux.ibm.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com> [lersek@redhat.com: fix typo in "ResetVectorVtf0.asm" comments]
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Reset Vector
 | |
| #
 | |
| #  Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = ResetVector
 | |
|   FILE_GUID                      = 1BA0062E-C779-4582-8566-336AE8F78F09
 | |
|   MODULE_TYPE                    = SEC
 | |
|   VERSION_STRING                 = 1.1
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   ResetVector.nasmb
 | |
| 
 | |
| [Packages]
 | |
|   OvmfPkg/OvmfPkg.dec
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
|   UefiCpuPkg/UefiCpuPkg.dec
 | |
| 
 | |
| [BuildOptions]
 | |
|    *_*_IA32_NASMB_FLAGS = -I$(WORKSPACE)/UefiCpuPkg/ResetVector/Vtf0/
 | |
|    *_*_X64_NASMB_FLAGS = -I$(WORKSPACE)/UefiCpuPkg/ResetVector/Vtf0/
 | |
| 
 | |
| [Pcd]
 | |
|   gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbSize
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableSize
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesSize
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize
 | |
| 
 | |
| [FixedPcd]
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdSevLaunchSecretSize
 |