Module polkavm_common::zygote
source · Expand description
This module defines the ABI boundary between the host and the zygote.
In general everything here can be modified at will, provided the zygote is recompiled.
Structs§
- The memory configuration used by a given program and/or sandbox instance.
- The virtual machine context.
Constants§
- A special hostcall number set by the host to signal that the guest should stop executing the program.
- A special hostcall number set by the host to signal that the guest should execute
sbrk
. - A sentinel value to indicate that the native program counter is not available.
- A sentinel value to indicate that the instruction counter is not available.
- The VM is busy.
- The VM has triggered a host call.
- The VM is idle and is waiting for work.
- The VM is ready to be initialized.
- The VM has triggered a trap.
- The address where the indirect jump table starts inside of the VM.
- The address where the return-to-host jump table vector physically resides.
- The address where the native code starts inside of the VM.
- The address of the top of the native stack.
- The address of the native stack.
- The size of the native stack.
- The address of the signal stack.
- The address of the global per-VM context struct.
- The maximum number of native code bytes that can be emitted as an epilogue.
- The maximum number of native code bytes that can be emitted by a single VM instruction.
- A flag which will trigger the sandbox to reload its program before execution.
- The maximum number of bytes the jump table can be.
- The maximum number of bytes the jump table can span in virtual memory.
- The maximum number of bytes the native code can be.