|
@@ -1,14 +1,15 @@
|
|
|
/** @file
|
|
|
- VMGEXIT Base Support Library.
|
|
|
+ CcExit Base Support Library.
|
|
|
|
|
|
Copyright (C) 2020, Advanced Micro Devices, Inc. All rights reserved.<BR>
|
|
|
+ Copyright (c) 2020 - 2022, Intel Corporation. All rights reserved.<BR>
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
|
|
**/
|
|
|
|
|
|
#include <Base.h>
|
|
|
#include <Uefi.h>
|
|
|
-#include <Library/VmgExitLib.h>
|
|
|
+#include <Library/CcExitLib.h>
|
|
|
|
|
|
/**
|
|
|
Perform VMGEXIT.
|
|
@@ -163,3 +164,31 @@ VmgExitHandleVc (
|
|
|
|
|
|
return EFI_UNSUPPORTED;
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ Handle a #VE exception.
|
|
|
+
|
|
|
+ Performs the necessary processing to handle a #VE exception.
|
|
|
+
|
|
|
+ @param[in, out] ExceptionType Pointer to an EFI_EXCEPTION_TYPE to be set
|
|
|
+ as value to use on error.
|
|
|
+ @param[in, out] SystemContext Pointer to EFI_SYSTEM_CONTEXT
|
|
|
+
|
|
|
+ @retval EFI_SUCCESS Exception handled
|
|
|
+ @retval EFI_UNSUPPORTED #VE not supported, (new) exception value to
|
|
|
+ propagate provided
|
|
|
+ @retval EFI_PROTOCOL_ERROR #VE handling failed, (new) exception value to
|
|
|
+ propagate provided
|
|
|
+
|
|
|
+**/
|
|
|
+EFI_STATUS
|
|
|
+EFIAPI
|
|
|
+VmTdExitHandleVe (
|
|
|
+ IN OUT EFI_EXCEPTION_TYPE *ExceptionType,
|
|
|
+ IN OUT EFI_SYSTEM_CONTEXT SystemContext
|
|
|
+ )
|
|
|
+{
|
|
|
+ *ExceptionType = VE_EXCEPTION;
|
|
|
+
|
|
|
+ return EFI_UNSUPPORTED;
|
|
|
+}
|