TianoCore EDK2 master
|
#include <Library/DebugLib.h>
#include <Library/HobLib.h>
#include <Library/PeiServicesLib.h>
#include <Library/QemuFwCfgLib.h>
#include <Ppi/MpServices.h>
#include <Register/ArchitecturalMsr.h>
#include <IndustryStandard/Tdx.h>
#include "Platform.h"
Go to the source code of this file.
Functions | |
STATIC VOID EFIAPI | WriteFeatureControl (IN OUT VOID *WorkSpace) |
STATIC EFI_STATUS EFIAPI | OnMpServicesAvailable (IN EFI_PEI_SERVICES **PeiServices, IN EFI_PEI_NOTIFY_DESCRIPTOR *NotifyDescriptor, IN VOID *Ppi) |
VOID | InstallFeatureControlCallback (IN OUT EFI_HOB_PLATFORM_INFO *PlatformInfoHob) |
Variables | |
STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR | mMpServicesNotify |
Install a callback when necessary for setting the Feature Control MSR on all processors.
Copyright (C) 2016, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file FeatureControl.c.
VOID InstallFeatureControlCallback | ( | IN OUT EFI_HOB_PLATFORM_INFO * | PlatformInfoHob | ) |
Definition at line 126 of file FeatureControl.c.
STATIC EFI_STATUS EFIAPI OnMpServicesAvailable | ( | IN EFI_PEI_SERVICES ** | PeiServices, |
IN EFI_PEI_NOTIFY_DESCRIPTOR * | NotifyDescriptor, | ||
IN VOID * | Ppi | ||
) |
Notification function called when EFI_PEI_MP_SERVICES_PPI becomes available.
[in] | PeiServices | Indirect reference to the PEI Services Table. |
[in] | NotifyDescriptor | Address of the notification descriptor data structure. |
[in] | Ppi | Address of the PPI that was installed. |
Definition at line 70 of file FeatureControl.c.
Write the Feature Control MSR on an Application Processor or the Boot Processor.
All APs execute this function in parallel. The BSP executes the function separately.
[in,out] | WorkSpace | Pointer to the input/output argument workspace shared by all processors. |
Definition at line 33 of file FeatureControl.c.
STATIC CONST EFI_PEI_NOTIFY_DESCRIPTOR mMpServicesNotify |
Definition at line 118 of file FeatureControl.c.