solana-labs / rbpf

Rust virtual machine and JIT compiler for eBPF programs
Apache License 2.0
277 stars 169 forks source link

Add new `syscall` instruction to the verifier #614

Closed LucasSte closed 1 week ago

LucasSte commented 2 weeks ago

This PR adds the new syscall instruction to the verifier. It also introduces a data structure to hold syscall registration.

The idea is that Agave will have a data structure to properly organize registrations and then pass the vector directly to rBPF SyscallRegistry::new(). I deemed that this part did not belong in there.

Modifications to the jitter, interpreter and a tidier organization to the execution tests will come in follow up PRs.

LucasSte commented 1 week ago

Superseded by #620.