VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/CcExitLib/CcExitVcHandler.h@ 99404

Last change on this file since 99404 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1/** @file
2 X64 #VC Exception Handler functon header file.
3
4 Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef CC_EXIT_VC_HANDLER_H_
10#define CC_EXIT_VC_HANDLER_H_
11
12#include <Base.h>
13#include <Uefi.h>
14#include <Library/CcExitLib.h>
15
16/**
17 Handle a #VC exception.
18
19 Performs the necessary processing to handle a #VC exception.
20
21 @param[in, out] Ghcb Pointer to the GHCB
22 @param[in, out] ExceptionType Pointer to an EFI_EXCEPTION_TYPE to be set
23 as value to use on error.
24 @param[in, out] SystemContext Pointer to EFI_SYSTEM_CONTEXT
25
26 @retval EFI_SUCCESS Exception handled
27 @retval EFI_UNSUPPORTED #VC not supported, (new) exception value to
28 propagate provided
29 @retval EFI_PROTOCOL_ERROR #VC handling failed, (new) exception value to
30 propagate provided
31
32**/
33EFI_STATUS
34EFIAPI
35InternalVmgExitHandleVc (
36 IN OUT GHCB *Ghcb,
37 IN OUT EFI_EXCEPTION_TYPE *ExceptionType,
38 IN OUT EFI_SYSTEM_CONTEXT SystemContext
39 );
40
41/**
42 Routine to allow ASSERT from within #VC.
43
44 @param[in, out] SevEsData Pointer to the per-CPU data
45
46**/
47VOID
48EFIAPI
49VmgExitIssueAssert (
50 IN OUT SEV_ES_PER_CPU_DATA *SevEsData
51 );
52
53#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette