mirror of https://github.com/acidanthera/audk.git
OvmfPkg: build PiSmmCpuDxeSmm for -D SMM_REQUIRE
At this point we can enable building PiSmmCpuDxeSmm. CPU specific features, like SMRR detection, and functions that are used to initialize SMM and process SMIs, are abstracted through the SmmCpuFeaturesLib class for the PiSmmCpuDxeSmm module. Resolve it to our own implementation under OvmfPkg -- it allows PiSmmCpuDxeSmm to work with QEMU's and KVM's 64-bit state save map format, which follows the definition from AMD's programmer manual. SmmCpuPlatformHookLib provides platform specific functions that are used to initialize SMM and process SMIs. Resolve it to the one Null instance provided by UefiCpuPkg, which is expected to work for most platforms. Cc: Paolo Bonzini <pbonzini@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> [pbonzini@redhat.com: resolve the SmmCpuFeaturesLib class to OVMF's own instance] Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19061 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
92b87f1c8c
commit
0d5d4205e3
|
@ -706,4 +706,9 @@
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
||||||
}
|
}
|
||||||
|
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
||||||
|
SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
||||||
|
}
|
||||||
!endif
|
!endif
|
||||||
|
|
|
@ -363,6 +363,7 @@ INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
||||||
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
||||||
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
||||||
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
||||||
|
INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -713,4 +713,9 @@
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
||||||
}
|
}
|
||||||
|
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
||||||
|
SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
||||||
|
}
|
||||||
!endif
|
!endif
|
||||||
|
|
|
@ -363,6 +363,7 @@ INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
||||||
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
||||||
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
||||||
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
||||||
|
INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
|
@ -711,4 +711,9 @@
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxSmmLib.inf
|
||||||
}
|
}
|
||||||
|
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf {
|
||||||
|
<LibraryClasses>
|
||||||
|
SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
||||||
|
SmmCpuFeaturesLib|OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
||||||
|
}
|
||||||
!endif
|
!endif
|
||||||
|
|
|
@ -363,6 +363,7 @@ INF MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
||||||
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
INF MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
||||||
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
INF UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
||||||
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
INF MdeModulePkg/Universal/LockBox/SmmLockBox/SmmLockBox.inf
|
||||||
|
INF UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in New Issue