TianoCore EDK2 master
VmgExitLibNull.c
Go to the documentation of this file.
1
9#include <Base.h>
10#include <Uefi.h>
11#include <Library/VmgExitLib.h>
12
35UINT64
36EFIAPI
38 IN OUT GHCB *Ghcb,
39 IN UINT64 ExitCode,
40 IN UINT64 ExitInfo1,
41 IN UINT64 ExitInfo2
42 )
43{
45
46 Event.Uint64 = 0;
47 Event.Elements.Vector = GP_EXCEPTION;
48 Event.Elements.Type = GHCB_EVENT_INJECTION_TYPE_EXCEPTION;
49 Event.Elements.Valid = 1;
50
51 return Event.Uint64;
52}
53
65VOID
66EFIAPI
68 IN OUT GHCB *Ghcb,
69 IN OUT BOOLEAN *InterruptState
70 )
71{
72}
73
85VOID
86EFIAPI
88 IN OUT GHCB *Ghcb,
89 IN BOOLEAN InterruptState
90 )
91{
92}
93
104VOID
105EFIAPI
107 IN OUT GHCB *Ghcb,
108 IN GHCB_REGISTER Offset
109 )
110{
111}
112
126BOOLEAN
127EFIAPI
129 IN GHCB *Ghcb,
130 IN GHCB_REGISTER Offset
131 )
132{
133 return FALSE;
134}
135
156EFIAPI
158 IN OUT EFI_EXCEPTION_TYPE *ExceptionType,
159 IN OUT EFI_SYSTEM_CONTEXT SystemContext
160 )
161{
162 *ExceptionType = VC_EXCEPTION;
163
164 return EFI_UNSUPPORTED;
165}
#define FALSE
Definition: Base.h:307
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
INTN EFI_EXCEPTION_TYPE
Definition: DebugSupport.h:35
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:28
VOID EFIAPI VmgSetOffsetValid(IN OUT GHCB *Ghcb, IN GHCB_REGISTER Offset)
BOOLEAN EFIAPI VmgIsOffsetValid(IN GHCB *Ghcb, IN GHCB_REGISTER Offset)
UINT64 EFIAPI VmgExit(IN OUT GHCB *Ghcb, IN UINT64 ExitCode, IN UINT64 ExitInfo1, IN UINT64 ExitInfo2)
VOID EFIAPI VmgInit(IN OUT GHCB *Ghcb, IN OUT BOOLEAN *InterruptState)
VOID EFIAPI VmgDone(IN OUT GHCB *Ghcb, IN BOOLEAN InterruptState)
EFI_STATUS EFIAPI VmgExitHandleVc(IN OUT EFI_EXCEPTION_TYPE *ExceptionType, IN OUT EFI_SYSTEM_CONTEXT SystemContext)