Struct solana_rbpf::vm::Config [−][src]
pub struct Config {Show 14 fields
pub max_call_depth: usize,
pub stack_frame_size: usize,
pub enable_stack_frame_gaps: bool,
pub instruction_meter_checkpoint_distance: usize,
pub enable_instruction_meter: bool,
pub enable_instruction_tracing: bool,
pub enable_symbol_and_section_labels: bool,
pub reject_unresolved_syscalls: bool,
pub reject_section_virtual_address_file_offset_mismatch: bool,
pub noop_instruction_ratio: f64,
pub sanitize_user_provided_values: bool,
pub encrypt_environment_registers: bool,
pub verify_mul64_imm_nonzero: bool,
pub verify_shift32_imm: bool,
}
Expand description
VM configuration settings
Fields
max_call_depth: usize
Maximum call depth
stack_frame_size: usize
Size of a stack frame in bytes, must match the size specified in the LLVM BPF backend
enable_stack_frame_gaps: bool
Enables gaps in VM address space between the stack frames
instruction_meter_checkpoint_distance: usize
Maximal pc distance after which a new instruction meter validation is emitted by the JIT
enable_instruction_meter: bool
Enable instruction meter and limiting
enable_instruction_tracing: bool
Enable instruction tracing
enable_symbol_and_section_labels: bool
Enable dynamic string allocation for labels
reject_unresolved_syscalls: bool
Reject ELF files containing syscalls which are not in the SyscallRegistry
reject_section_virtual_address_file_offset_mismatch: bool
Reject ELF files containing section headers where sh_addr != sh_offset
noop_instruction_ratio: f64
Ratio of random no-ops per instruction in JIT (0.0 = OFF)
sanitize_user_provided_values: bool
Enable disinfection of immediate values and offsets provided by the user in JIT
encrypt_environment_registers: bool
Encrypt the environment registers in JIT
verify_mul64_imm_nonzero: bool
Feature flag for the MUL64_IMM != 0 verification check
verify_shift32_imm: bool
Feature flag for the SHIFT_IMM >= 32 verification check
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more