diff options
| author | Alexei Starovoitov <ast@kernel.org> | 2026-10-31 21:55:39 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-11-02 22:20:01 +0000 |
| commit | 85b6a11252ba7f9631eedcbc6744c6450e6ae8c7 (patch) | |
| tree | 05801b075e0dd565e9002d3daf496740a190f963 /scripts/basic | |
| parent | 5eced83779fd60cfa2a1a86fd89d282d02d40d05 (diff) | |
| download | linux-85b6a11252ba7f9631eedcbc6744c6450e6ae8c7.tar.gz linux-85b6a11252ba7f9631eedcbc6744c6450e6ae8c7.zip | |
s390/bpf: Support internal-only MOV instruction to resolve per-CPU addrs
The verifier emits BPF_MOV64_PERCPU_REG to turn the address of a per-cpu
variable into the address of the copy of this cpu. s390 keeps the per-cpu
offset of the cpu in the lowcore. Add it to the register with one insn, the
way the JIT reads cpu_nr and current_task for the helpers that it inlines.
With bpf_jit_supports_percpu_insn() the verifier inlines the lookup in
per-cpu array and per-cpu hash maps, and resolves the address of a value in
a per-cpu array. Patch 7 needs the insn for may_goto.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261031215543.682284-6-alexei.starovoitov@gmail.com
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
