TianoCore EDK2 master
VmgExitVcHandler.h File Reference
#include <Base.h>
#include <Uefi.h>
#include <Library/VmgExitLib.h>

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI InternalVmgExitHandleVc (IN OUT GHCB *Ghcb, IN OUT EFI_EXCEPTION_TYPE *ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)
 
VOID EFIAPI VmgExitIssueAssert (IN OUT SEV_ES_PER_CPU_DATA *SevEsData)
 

Detailed Description

X64 #VC Exception Handler functon header file.

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

Definition in file VmgExitVcHandler.h.

Function Documentation

◆ InternalVmgExitHandleVc()

EFI_STATUS EFIAPI InternalVmgExitHandleVc ( IN OUT GHCB *  Ghcb,
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]GhcbPointer to the GHCB
[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 2230 of file VmgExitVcHandler.c.

◆ VmgExitIssueAssert()

VOID EFIAPI VmgExitIssueAssert ( IN OUT SEV_ES_PER_CPU_DATA SevEsData)

Routine to allow ASSERT from within #VC.

Parameters
[in,out]SevEsDataPointer to the per-CPU data

Definition at line 2344 of file VmgExitVcHandler.c.