Replies: 1 comment
-
Thanks for bringing this up @lmb. Someone from the eBPF maintainers group will look into the presentation and reply back to this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently attended a talk by Paul McKenney on the work on a BPF memory model. This exists so that programs accessing memory concurrently have meaningful semantics.
If I understand
bpf2c
correctly it works by translating a BPF instruction into an equivalent C statement. All statements are then compiled via MSVC, resulting in x64 assembly in a native .sys file. In terms of memory models we get the following:How do you ensure that this transformation of BPF to C preserves BPF memory model semantics in the final assembly?
See https://datatracker.ietf.org/meeting/118/materials/slides-118-bpf-bpf-memory-model-00 for some context.
Beta Was this translation helpful? Give feedback.
All reactions