summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2024-07-02 01:40:27 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2024-07-02 18:31:52 +0200
commit2f9469484a3b52c66b799de73bd1ca75617bc8d5 (patch)
treea1315869ce478f7f481c2a87b31262b001c9ee46 /virt
parent1e36027e39b8b3fa567ce3d743dbda5954dc0a56 (diff)
s390/bpf: Support arena atomics
s390x supports most BPF atomics using single instructions, which makes implementing arena support a matter of adding arena address to the base register (unfortunately atomics do not support index registers), and wrapping the respective native instruction in probing sequences. An exception is BPF_XCHG, which is implemented using two different memory accesses and a loop. Make sure there is enough extable entries for both instructions. Compute the base address once for both memory accesses. Since on exception we need to land after the loop, emit the nops manually. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20240701234304.14336-10-iii@linux.ibm.com
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions