TianoCore EDK2 master
PeiDxeVmgExitVcHandler.c File Reference
#include <Base.h>
#include <Uefi.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemEncryptSevLib.h>
#include <Library/VmgExitLib.h>
#include <Register/Amd/Msr.h>
#include "VmgExitVcHandler.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI VmgExitHandleVc (IN OUT EFI_EXCEPTION_TYPE *ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 

Detailed Description

X64 #VC Exception Handler functon.

Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file PeiDxeVmgExitVcHandler.c.

Function Documentation

◆ VmgExitHandleVc()

EFI_STATUS EFIAPI VmgExitHandleVc ( IN OUT EFI_EXCEPTION_TYPE ExceptionType,
IN OUT EFI_SYSTEM_CONTEXT  SystemContext 
)

Handle a #VC exception.

Performs the necessary processing to handle a #VC exception.

Parameters
[in,out]ExceptionTypePointer to an EFI_EXCEPTION_TYPE to be set as value to use on error.
[in,out]SystemContextPointer to EFI_SYSTEM_CONTEXT
Return values
EFI_SUCCESSException handled
EFI_UNSUPPORTED#VC not supported, (new) exception value to propagate provided
EFI_PROTOCOL_ERROR#VC handling failed, (new) exception value to propagate provided

Definition at line 36 of file PeiDxeVmgExitVcHandler.c.