https://bugzilla.tianocore.org/show_bug.cgi?id=4169 Move common X86 instruction codes from CcExitVcHandler.c to separate files (CcInstruction.h / CcInstruction.c) so that these codes can be re-used in TDX. Cc: Gerd Hoffmann <kraxel@redhat.com> Cc: Erdem Aktas <erdemaktas@google.com> Cc: James Bottomley <jejb@linux.ibm.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Tom Lendacky <thomas.lendacky@amd.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Min Xu <min.m.xu@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
		
			
				
	
	
		
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
## @file
 | 
						|
#  CcExitLib Library.
 | 
						|
#
 | 
						|
#  Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
 | 
						|
#  Copyright (C) 2020 - 2022, Intel Corporation. All rights reserved.<BR>
 | 
						|
#  SPDX-License-Identifier: BSD-2-Clause-Patent
 | 
						|
#
 | 
						|
##
 | 
						|
 | 
						|
[Defines]
 | 
						|
  INF_VERSION                    = 0x00010005
 | 
						|
  BASE_NAME                      = CcExitLib
 | 
						|
  FILE_GUID                      = 0e923c25-13cd-430b-8714-ffe85652a97b
 | 
						|
  MODULE_TYPE                    = BASE
 | 
						|
  VERSION_STRING                 = 1.0
 | 
						|
  LIBRARY_CLASS                  = CcExitLib|PEIM DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_DRIVER
 | 
						|
 | 
						|
#
 | 
						|
# The following information is for reference only and not required by the build tools.
 | 
						|
#
 | 
						|
#  VALID_ARCHITECTURES           = X64
 | 
						|
#
 | 
						|
 | 
						|
[Sources.common]
 | 
						|
  CcExitLib.c
 | 
						|
  CcExitVcHandler.c
 | 
						|
  CcExitVcHandler.h
 | 
						|
  CcInstruction.c
 | 
						|
  PeiDxeCcExitVcHandler.c
 | 
						|
  CcExitVeHandler.c
 | 
						|
  X64/TdVmcallCpuid.nasm
 | 
						|
 | 
						|
[Packages]
 | 
						|
  MdePkg/MdePkg.dec
 | 
						|
  OvmfPkg/OvmfPkg.dec
 | 
						|
  UefiCpuPkg/UefiCpuPkg.dec
 | 
						|
 | 
						|
[LibraryClasses]
 | 
						|
  BaseLib
 | 
						|
  BaseMemoryLib
 | 
						|
  DebugLib
 | 
						|
  LocalApicLib
 | 
						|
  MemEncryptSevLib
 | 
						|
 | 
						|
[Pcd]
 | 
						|
  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidBase
 | 
						|
  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidSize
 |