-
Notifications
You must be signed in to change notification settings - Fork 148
s390/bpf: Use direct calls and jumps where possible #9486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Upstream branch: 0786654 |
c210f22
to
2530e45
Compare
Upstream branch: dc0fe95 |
4841deb
to
928629d
Compare
2530e45
to
61c9cef
Compare
Upstream branch: c80d797 |
928629d
to
564b277
Compare
61c9cef
to
715d6cb
Compare
Upstream branch: 3ec8560 |
564b277
to
6ad4f09
Compare
715d6cb
to
506c27a
Compare
Upstream branch: 1274163 |
6ad4f09
to
1a68116
Compare
506c27a
to
76c716d
Compare
Upstream branch: d87fdb1 |
1a68116
to
059ee3b
Compare
76c716d
to
f3b4b37
Compare
Upstream branch: dbe99ea |
059ee3b
to
290ef32
Compare
f3b4b37
to
bf66d41
Compare
Upstream branch: 6850a33 |
290ef32
to
5e9ba6a
Compare
bf66d41
to
74b5324
Compare
Upstream branch: dbe99ea |
5e9ba6a
to
aab100d
Compare
74b5324
to
c3c6b4b
Compare
Upstream branch: 5c42715 |
aab100d
to
80a892f
Compare
c3c6b4b
to
1a79214
Compare
After the V!=R rework (commit c98d2ec ("s390/mm: Uncouple physical vs virtual address spaces")), all kernel code and related data are allocated within a 4G region, making it possible to use relative addressing in BPF code more extensively. Convert as many indirect calls and jumps to direct calls as possible, namely: * BPF_CALL * __bpf_tramp_enter() * __bpf_tramp_exit() * __bpf_prog_enter() * __bpf_prog_exit() * fentry * fmod_ret * fexit * BPF_TRAMP_F_CALL_ORIG without BPF_TRAMP_F_ORIG_STACK * Trampoline returns without BPF_TRAMP_F_SKIP_FRAME and BPF_TRAMP_F_ORIG_STACK The following indirect calls and jumps remain: * Prog returns * Trampoline returns with BPF_TRAMP_F_SKIP_FRAME or BPF_TRAMP_F_ORIG_STACK * BPF_TAIL_CALL * BPF_TRAMP_F_CALL_ORIG with BPF_TRAMP_F_ORIG_STACK As a result, only one usage of call_r1() remains, so inline it. Signed-off-by: Ilya Leoshkevich <[email protected]>
Upstream branch: bf7a6a6 |
80a892f
to
89f9290
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=991502 expired. Closing PR. |
Pull request for series with
subject: s390/bpf: Use direct calls and jumps where possible
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=991502