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§
- Address
Table - Address
Table Packed - Address
Table Raw - Cache
Aligned - Sandbox
Memory Config - The memory configuration used by a given program and/or sandbox instance.
- VmCtx
- The virtual machine context.
- VmCtx
Counters - VmCtx
Heap Info - VmCtx
Syscall - VmInit
Constants§
- HOSTCALL_
ABORT_ EXECUTION - A special hostcall number set by the host to signal that the guest should stop executing the program.
- HOSTCALL_
SBRK - A special hostcall number set by the host to signal that the guest should execute
sbrk. - SANDBOX_
EMPTY_ NATIVE_ PROGRAM_ COUNTER - A sentinel value to indicate that the native program counter is not available.
- SANDBOX_
EMPTY_ NTH_ INSTRUCTION - A sentinel value to indicate that the instruction counter is not available.
- VMCTX_
FUTEX_ BUSY - The VM is busy.
- VMCTX_
FUTEX_ HOSTCALL - The VM has triggered a host call.
- VMCTX_
FUTEX_ IDLE - The VM is idle and is waiting for work.
- VMCTX_
FUTEX_ INIT - The VM is ready to be initialized.
- VMCTX_
FUTEX_ TRAP - The VM has triggered a trap.
- VM_
ADDR_ JUMP_ TABLE - The address where the indirect jump table starts inside of the VM.
- VM_
ADDR_ JUMP_ TABLE_ RETURN_ TO_ HOST - The address where the return-to-host jump table vector physically resides.
- VM_
ADDR_ NATIVE_ CODE - The address where the native code starts inside of the VM.
- VM_
ADDR_ NATIVE_ STACK_ HIGH - The address of the top of the native stack.
- VM_
ADDR_ NATIVE_ STACK_ LOW - The address of the native stack.
- VM_
ADDR_ NATIVE_ STACK_ SIZE - The size of the native stack.
- VM_
ADDR_ SIGSTACK - The address of the signal stack.
- VM_
ADDR_ VMCTX - The address of the global per-VM context struct.
- VM_
COMPILER_ MAXIMUM_ EPILOGUE_ LENGTH - The maximum number of native code bytes that can be emitted as an epilogue.
- VM_
COMPILER_ MAXIMUM_ INSTRUCTION_ LENGTH - The maximum number of native code bytes that can be emitted by a single VM instruction.
- VM_
RPC_ FLAG_ RECONFIGURE - A flag which will trigger the sandbox to reload its program before execution.
- VM_
SANDBOX_ MAXIMUM_ JUMP_ TABLE_ SIZE - The maximum number of bytes the jump table can be.
- VM_
SANDBOX_ MAXIMUM_ JUMP_ TABLE_ VIRTUAL_ SIZE - The maximum number of bytes the jump table can span in virtual memory.
- VM_
SANDBOX_ MAXIMUM_ NATIVE_ CODE_ SIZE - The maximum number of bytes the native code can be.