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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.