Module exit

Module exit 

Source

Functions§

abort
Exits the VM with an Abort OUT action and code 0.
abort_with_code
Exits the VM with an Abort OUT action and a specific code.
abort_with_code_and_message
Aborts the program with a code and a message.
debug_print
Prints a message using OutBAction::DebugPrint. It transmits bytes of a message through several VMExists and, with such, it is slower than print_output_with_host_print.
halt
Halt the execution of the guest and returns control to the host. Halt is generally called for a successful completion of the guest’s work, this means we can instrument it as a trace point because the trace state shall not be locked at this point (we are not in an exception context).
write_abort
This function exists to give the guest more manual control over the abort sequence. For example, in hyperlight_guest_bin’s panic handler, we have a message of unknown length that we want to stream to the host, which requires sending the message in chunks