pub enum HyperlightError {
Show 60 variants
AnyhowError(Error),
BoundsCheckFailed(u64, usize),
CheckedAddOverflow(u64, u64),
CStringConversionError(NulError),
DisallowedSyscall,
Error(String),
ExceptionDataLengthIncorrect(i32, usize),
ExceptionMessageTooBig(usize, usize),
ExecutionAccessViolation(u64),
ExecutionCanceledByHost(),
FailedToGetValueFromParameter(),
FieldIsMissingInGuestLogData(String),
GuestAborted(u8, String),
GuestBinaryShouldBeAFile(),
GuestError(ErrorCode, String),
GuestExecutionHungOnHostFunctionCall(),
GuestFunctionCallAlreadyInProgress(),
GuestInterfaceUnsupportedType(String),
GuestOffsetIsInvalid(usize),
HostFunctionNotFound(String),
HypervisorHandlerCommunicationFailure(),
HypervisorHandlerExecutionCancelAttemptOnFinishedExecution(),
HypervisorHandlerMessageReceiveTimedout(),
IOError(Error),
IntConversionFailure(TryFromIntError),
InvalidFlatBuffer(InvalidFlatbuffer),
JsonConversionFailure(Error),
KVMError(Error),
LockAttemptFailed(String),
MemoryAccessViolation(u64, MemoryRegionFlags, MemoryRegionFlags),
MemoryAllocationFailed(Option<i32>),
MemoryProtectionFailed(Option<i32>),
MemoryRequestTooBig(usize, usize),
MetricNotFound(&'static str),
MmapFailed(Option<i32>),
MprotectFailed(Option<i32>),
MSHVError(MshvError),
NoHypervisorFound(),
NoMemorySnapshot,
OutBHandlingError(String, String),
ParameterValueConversionFailure(ParameterValue, &'static str),
PEFileProcessingFailure(Error),
Prometheus(Error),
RawPointerLessThanBaseAddress(RawPtr, u64),
RefCellBorrowFailed(BorrowError),
RefCellMutBorrowFailed(BorrowMutError),
ReturnValueConversionFailure(ReturnValue, &'static str),
StackOverflow(),
SeccompFilterBackendError(BackendError),
SeccompFilterError(Error),
SystemTimeError(SystemTimeError),
TryFromSliceError(TryFromSliceError),
UnexpectedNoOfArguments(usize, usize),
UnexpectedParameterValueType(ParameterValue, String),
UnexpectedReturnValueType(ReturnValue, String),
UTF8SliceConversionFailure(Utf8Error),
UTF8StringConversionFailure(FromUtf8Error),
VectorCapacityIncorrect(usize, usize, i32),
VmmSysError(Error),
YamlConversionFailure(Error),
}
Expand description
The error type for Hyperlight operations
Variants§
AnyhowError(Error)
Anyhow error
BoundsCheckFailed(u64, usize)
Memory access out of bounds
CheckedAddOverflow(u64, u64)
Checked Add Overflow
CStringConversionError(NulError)
CString conversion error
DisallowedSyscall
A disallowed syscall was caught
Error(String)
A generic error with a message
ExceptionDataLengthIncorrect(i32, usize)
Exception Data Length is incorrect
ExceptionMessageTooBig(usize, usize)
Exception Message is too big
ExecutionAccessViolation(u64)
Execution violation
ExecutionCanceledByHost()
Guest execution was cancelled by the host
FailedToGetValueFromParameter()
Accessing the value of a flatbuffer parameter failed
FieldIsMissingInGuestLogData(String)
Field Name not found in decoded GuestLogData
GuestAborted(u8, String)
Guest aborted during outb
GuestBinaryShouldBeAFile()
Cannot run from guest binary unless the binary is a file
GuestError(ErrorCode, String)
Guest call resulted in error in guest
GuestExecutionHungOnHostFunctionCall()
An attempt to cancel guest execution failed because it is hanging on a host function call
GuestFunctionCallAlreadyInProgress()
Guest call already in progress
GuestInterfaceUnsupportedType(String)
The given type is not supported by the guest interface.
GuestOffsetIsInvalid(usize)
The guest offset is invalid.
HostFunctionNotFound(String)
A Host function was called by the guest but it was not registered.
HypervisorHandlerCommunicationFailure()
An attempt to communicate with or from the Hypervisor Handler thread failed
(i.e., usually a failure call to .send()
or .recv()
on a message passing
channel)
HypervisorHandlerExecutionCancelAttemptOnFinishedExecution()
An attempt to cancel a Hypervisor Handler execution failed.
See terminate_hypervisor_handler_execution_and_reinitialise
for more details.
HypervisorHandlerMessageReceiveTimedout()
A Receive for a Hypervisor Handler Message Timedout
IOError(Error)
Reading Writing or Seeking data failed.
IntConversionFailure(TryFromIntError)
Failed to convert to Integer
InvalidFlatBuffer(InvalidFlatbuffer)
The flatbuffer is invalid
JsonConversionFailure(Error)
Conversion of str to Json failed
KVMError(Error)
Error occurred in KVM Operation
LockAttemptFailed(String)
An attempt to get a lock from a Mutex failed.
MemoryAccessViolation(u64, MemoryRegionFlags, MemoryRegionFlags)
Memory Access Violation at the given address. The access type and memory region flags are provided.
MemoryAllocationFailed(Option<i32>)
Memory Allocation Failed.
MemoryProtectionFailed(Option<i32>)
Memory Protection Failed
MemoryRequestTooBig(usize, usize)
The memory request exceeds the maximum size allowed
MetricNotFound(&'static str)
Metric Not Found.
MmapFailed(Option<i32>)
mmap Failed.
MprotectFailed(Option<i32>)
mprotect Failed.
MSHVError(MshvError)
mshv Error Occurred
NoHypervisorFound()
No Hypervisor was found for Sandbox.
NoMemorySnapshot
Restore_state called with no valid snapshot
OutBHandlingError(String, String)
An error occurred handling an outb message
ParameterValueConversionFailure(ParameterValue, &'static str)
Failed to get value from parameter value
PEFileProcessingFailure(Error)
a failure occurred processing a PE file
Prometheus(Error)
a Prometheus error occurred
RawPointerLessThanBaseAddress(RawPtr, u64)
Raw pointer is less than base address
RefCellBorrowFailed(BorrowError)
RefCell borrow failed
RefCellMutBorrowFailed(BorrowMutError)
RefCell mut borrow failed
ReturnValueConversionFailure(ReturnValue, &'static str)
Failed to get value from return value
StackOverflow()
Stack overflow detected in guest
SeccompFilterBackendError(BackendError)
a backend error occurred with seccomp filters
SeccompFilterError(Error)
an error occurred with seccomp filters
SystemTimeError(SystemTimeError)
SystemTimeError
TryFromSliceError(TryFromSliceError)
Error occurred converting a slice to an array
UnexpectedNoOfArguments(usize, usize)
A function was called with an incorrect number of arguments
UnexpectedParameterValueType(ParameterValue, String)
The parameter value type is unexpected
UnexpectedReturnValueType(ReturnValue, String)
The return value type is unexpected
UTF8SliceConversionFailure(Utf8Error)
Slice conversion to UTF8 failed
UTF8StringConversionFailure(FromUtf8Error)
Slice conversion to UTF8 failed
VectorCapacityIncorrect(usize, usize, i32)
The capacity of the vector is incorrect
VmmSysError(Error)
vmm sys Error Occurred
YamlConversionFailure(Error)
Conversion of str to YAML failed