VmTdExitNull.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /** @file
  2. Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. **/
  5. #include <Base.h>
  6. #include <Uefi.h>
  7. #include <Library/VmgExitLib.h>
  8. /**
  9. Handle a #VE exception.
  10. Performs the necessary processing to handle a #VE exception.
  11. @param[in, out] ExceptionType Pointer to an EFI_EXCEPTION_TYPE to be set
  12. as value to use on error.
  13. @param[in, out] SystemContext Pointer to EFI_SYSTEM_CONTEXT
  14. @retval EFI_SUCCESS Exception handled
  15. @retval EFI_UNSUPPORTED #VE not supported, (new) exception value to
  16. propagate provided
  17. @retval EFI_PROTOCOL_ERROR #VE handling failed, (new) exception value to
  18. propagate provided
  19. **/
  20. EFI_STATUS
  21. EFIAPI
  22. VmTdExitHandleVe (
  23. IN OUT EFI_EXCEPTION_TYPE *ExceptionType,
  24. IN OUT EFI_SYSTEM_CONTEXT SystemContext
  25. )
  26. {
  27. *ExceptionType = VE_EXCEPTION;
  28. return EFI_UNSUPPORTED;
  29. }