Description
Currently, a hyperlight elf guest binary has an entrypoint. Execution is started at this entrypoint the first time the vm is ran. Additionally, the guest is required to write a pointer to a specific place in memory during execution. This pointer is then read by the host, and the host sets the guest's RIP to this pointer on subsequent guest function calls, so that execution starts from there.
The existing logic is complicated and can be simplified by always starting execution at entrypoint. Whether or not to run "initialization logic" can all be handled from the guest side (e.g. by reading parameters passed to entrypoint, set by the host). Apart from just a code simplification, this restructuring also has the added benefit from the guest's perspective for example, guests that don't require any initialization could avoid doing it entirely (impossible with current hyperlight structure). It would also allow an arbitary of separate initialization steps (as opposed to the current max on 1)
Metadata
Metadata
Assignees
Type
Projects
Status